bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to make a non-interactive bash kill its children


From: Irek Szczesniak
Subject: how to make a non-interactive bash kill its children
Date: Tue, 24 May 2005 11:34:10 -0600
User-agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]