- Joined
- Sep 15, 2009
- Messages
- 3,480
- Reaction score
- 1,196
From what I remember using an ampersand at the end of a command in terminal (root) will keep the process running, it even assigns a process number for it. I keep the connection alive just in case.
I found a solution of NOHUP command so that I can exit the terminal, but sometimes it times out, connection is lost and the ampersand will still run the process in the background... so is NOHUP necessary or was was it another process that stopped my scripts? (Is there an error log for why a process stopped?)
Last night Windows Update updated my machine, possibly causing a force log out rather than a timeout...
To keep the script running no matter what, which is better (CentOS):
/usr/bin/php -n -d ... -d ... /path_to_file.php &
or
nohup /usr/bin/php -n -d ... -d ... /path_to_file.php
To keep the process(es) alive no matter what?
I can't seem to find why & stops the process on a forced log out or anything on nohup with running a php script... :?:
I blame Windows for losing me $50 last night. Can I sue them for their shitty automatic update? :approve:
I found a solution of NOHUP command so that I can exit the terminal, but sometimes it times out, connection is lost and the ampersand will still run the process in the background... so is NOHUP necessary or was was it another process that stopped my scripts? (Is there an error log for why a process stopped?)
Last night Windows Update updated my machine, possibly causing a force log out rather than a timeout...
To keep the script running no matter what, which is better (CentOS):
/usr/bin/php -n -d ... -d ... /path_to_file.php &
or
nohup /usr/bin/php -n -d ... -d ... /path_to_file.php
To keep the process(es) alive no matter what?
I can't seem to find why & stops the process on a forced log out or anything on nohup with running a php script... :?:
I blame Windows for losing me $50 last night. Can I sue them for their shitty automatic update? :approve: