I invoke a script (do_something) in background via another script (do_manythings) as below.
nohup do_something &
How would I know in the parent script (do_manythings) that the job invoked (do_something) has been done?
background-processnohupprocess
I invoke a script (do_something) in background via another script (do_manythings) as below.
nohup do_something &
How would I know in the parent script (do_manythings) that the job invoked (do_something) has been done?
Best Answer
If you want to fire off a background job, do some other stuff, then stop and wait for the background job to finish, you can do
Alternatively, you can test for the job having exited like this: