Karl E. Jorgensen wrote: > With "kill -9", there is no way the shell can catch it. It's a bit of a > shotgun approach to getting rid of the process (man 7 signal). > > However, if you were to settle for the normal kill (= SIGTERM), then you > should be OK: > #!/bin/sh > > echo -n "Doing something.." > (while true; do echo -n "."; sleep 1; done) & > DOTLOOP=$! > ping -c 1 www.web.de > /dev/null > kill $DOTLOOP > echo " done."
Hmm, not on my system. The only difference is that the term "Killed" is changed to "Terminated". :( Ciao, Viktor -- Viktor Rosenfeld WWW: http://www.informatik.hu-berlin.de/~rosenfel/
pgpW24r6VV0Mc.pgp
Description: PGP signature