Re: how to make a non-interactive bash kill its children

2005-05-26 Thread Irek Szczesniak
Chet Ramey wrote: 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? Since it's a script, all processes are in the same process group. Depending on your system (most acc

Re: how to make a non-interactive bash kill its children

2005-05-24 Thread Irek Szczesniak
Thank you for your advice. It's really a nifty solution, and it works great for me! Best, Irek Chet Ramey wrote: 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 t

Re: how to make a non-interactive bash kill its children

2005-05-24 Thread Chet Ramey
> 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 w

how to make a non-interactive bash kill its children

2005-05-24 Thread Irek Szczesniak
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 exi