The 03.10.16 at 17:54, Kastus wrote:
However, the parent script doesn't exit till the child exits.
Wrong.
No, I'm not. I run an ip-up.local script calling another script (with &): /etc/ppp/ip-up.local.doit & and it doesn't _exit_ till the child exits. I tried hard, some years ago. As a hack - I was tired of trying many combinations - I'm doing it as: at -f /etc/ppp/ip-up.local.doit now and it works.
Here is an example. [...] So parent script does not wait for the child to exit.
That doesn't prove my point. The first script executes completely, yes. But it doesn't _exit_ till the child exits! Mind the word: "exit". Not finishing execution, but exiting completely, freeing the ID, not showing as running process. Parent processes usually wait for children to complete before exiting themselves, or at least, scripts do. -- Cheers, Carlos Robinson