Results 1 to 2 of 2
I've got a script running, which inturn spawns multiple child processes.
How can I re-start the script immediately after all the child & parent processes of the first run finishes?
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-08-2010 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 60
automating runs
I've got a script running, which inturn spawns multiple child processes.
How can I re-start the script immediately after all the child & parent processes of the first run finishes?
As I'm away for the weekend, I need to automate this.
So I would need some script that does the following
a)keeps checking status & informs when all parent & child processes end.
// that is the main bottle neck for me
b)once this happens,start the script again
Any ideas?
- 01-08-2010 #2Linux User
- Join Date
- Nov 2009
- Location
- France
- Posts
- 292
You could check if your parent process is up withkeeps checking status
ps -e | grep processname
in a controller script run as a cron job every min.


Reply With Quote
