2
I'm using phpseclib
to run a shell script on my server at a given interval. That script involves using nohup
. For whatever reason, if there isn't a user ready to send SIGINT or a return to nohup
once it's launched, it kills the process.
For instance, if I run the script via a local prompt it runs, then all I have to do is hit enter and I get a new cmd prompt. When I try and run it automatedly, I can't pass the return or a SIGINT and the process never finishes. Ideas?
Have you tried replacing
nohup
with GNUscreen
? What function doesnohup
provide that can't be provided byscreen
? – allquixotic – 2012-11-03T06:07:22.307@allquixotic Screen requires an active terminal, and therefore cannot be run solely over an ssh command. – Peter Kazazes – 2012-11-03T17:01:59.417
Are you already aware of the information in this AU post?
– allquixotic – 2012-11-03T19:03:02.333