bash script running in background disappeared
Hi,
I set the script to run in background using /bin/bash /home/user/script.sh Argument & the script appeared in ps aux root 1189438 0.0 0.0 12724 3060 pts/0 S 12:39 0:00 /bin/bash /home/user/script.sh Argument and now today i dont see the script listed or running anymore in ps aux output while niether PC nor any service was restarted.i dont understand how process got killed or stop ?. how should i look into this. |
Quote:
Would be nice to see the actual script. |
you cannot check a process which is already terminated, but you can add some logging to that script to see how does it work (next time).
|
Not enough information. In addition to the above.
Although your script is running in the background it is still attached to its parent process. A common mistake is to close the terminal or if it is a remote connection to close the session. Using nohup or using screen will detach the process. |
Quote:
|
All times are GMT -5. The time now is 02:44 AM. |