Forum Discussion
Keep process running after ending a ssh session
Hi,
I need to make some continuous ping tests and keep them running for a longer period of time (basically if the time exceeds a given threshold the event would be logged into a file).
I have the simple script ready but I'm not completely sure how to execute it and keep it alive even if I log out from the box (this should run for several days at least). Of course I also need a way to kill the process once I'm done with my testing.
- iaine
Nacreous
Hi
You could use setsid to do this
http://man7.org/linux/man-pages/man1/setsid.1.html
https://stackoverflow.com/questions/19233529/run-bash-script-as-daemon
- Bartek
Cirrus
That looks promising, thanks. I'll be probably setting this up tomorrow.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com