Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    60

    Question 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?

  2. #2
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    keeps checking status
    You could check if your parent process is up with

    ps -e | grep processname

    in a controller script run as a cron job every min.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •