Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, in shell scripting, how do you pause the foreground process (i.e. shell) until background process with process ID of PID 123 has exited?
Answer

wait 123

^^ note that wait not only waits until background process 123 has finished but it also returns the exit code of process 123


Question
In linux, in shell scripting, how do you pause the foreground process (i.e. shell) until background process with process ID of PID 123 has exited?
Answer
?

Question
In linux, in shell scripting, how do you pause the foreground process (i.e. shell) until background process with process ID of PID 123 has exited?
Answer

wait 123

^^ note that wait not only waits until background process 123 has finished but it also returns the exit code of process 123

If you want to change selection, open document below and click on "Move attachment"

20. Advanced Shell Scripting
h (1) for details. umask See Section 14.2. unset VAR Deletes a variable or environment variable. unset -f func Deletes a function. wait Pauses until all background jobs have completed. wait PID <span>Pauses until background process with process ID of PID has exited, then returns the exit code of the background process. wait % job Same with respect to a job spec. 20.5 Trapping Signals -- the trap Command You will often want to make your script perf

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.