DISQUS

Tech-Recipes: A simple script that waits for a process to complete and then executes a command | Bourne shell scripting | Tech-Recipes

  • David · 11 months ago
    This is very intriguing, but I wonder why you didn't use the wait command?

    $ date ; sleep 30 &
    Sat Nov 29 12:53:58 CST 2008
    [1] 7695
    $ wait %1
    $

    Simple.
  • Parvathi · 9 months ago
    Very helpful... and very clear.
    Thanks for the script...