Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: Signal handler to reload file #582

Open
fragglet opened this issue Oct 22, 2024 · 0 comments
Open

feature request: Signal handler to reload file #582

fragglet opened this issue Oct 22, 2024 · 0 comments

Comments

@fragglet
Copy link

If you type an R in less, it reloads the current file, which is useful if the contents of the file are changing. It would be nice if this could be triggered externally by sending a signal.

A crude example of what you might do with this:

less processes.txt

.....

while true; do
  ps auwx > processes.txt
  kill -USR1 $LESSPID
  sleep 5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant