View previous topic :: View next topic |
Author |
Message |
vitoriung Apprentice
Joined: 21 May 2007 Posts: 158 Location: Prague, Czech Republic
|
Posted: Tue Dec 16, 2008 4:44 am Post subject: script waiting for process to finish and start another |
|
|
Hi,
I'd like some advice how to write simple script waiting for PID to exit with any status (0 or 1)
and run another command.
Any ideas? THX |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9530 Location: beyond the rim
|
Posted: Tue Dec 16, 2008 4:59 am Post subject: |
|
|
Quote: | $ help wait
wait: wait [n]
Wait for the specified process and report its termination status. If
N is not given, all currently active child processes are waited for,
and the return code is zero. N may be a process ID or a job
specification; if a job spec is given, all processes in the job's
pipeline are waited for. |
|
|
Back to top |
|
|
|