I run a script, and so Bash runs non-interactively. In the script I run some commands with:

> some_command &

My script is run by a process which doesn't have a controlling terminal, and so my script doesn't inherit the terminal.

I want Bash to kill the commands that I run when my script exits. The option "huponexit" doesn't work for me because Bash runs non-interactively. How can I achieve my goal?

Thanks for reading.


Best,
Irek


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to