[Top][All Lists]

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

Re: compile kills background jobs undocumentedly

From: Dan Jacobson
Subject: Re: compile kills background jobs undocumentedly
Date: Mon, 22 Dec 2003 05:19:59 +0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Geez, the pains one must go to in a shell script run by the compile
command, to avoid any background jobs getting terminated when we reach
the bottom.

#didn't work:
sleep 3&&beep& #("beep" could be any command.)
sleep 3&&beep&disown
(sleep 3&&beep)&
(sleep 3&&beep)&disown
nohup sh -c 'sleep 3&&beep'&

echo 'sleep 3&&beep'|nohup sh&
nohup sh -c 'sleep 3&&beep&'
echo 'sleep 3&&beep&'|nohup sh
nohup sh<<!
sh <<!! &
sleep 3&&beep

nohup sh<<!
sleep 3&&beep&

OK, I suppose it is a nice place to practice making scripts hangup immune.

Dan> OK, but at least explain what you are doing in C-h f compile, and Info.

reply via email to

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