Killing jobs?

Alexander Krause alexander.krause at erazor-zone.de
Thu May 31 18:54:26 UTC 2007


Hi,

i recently tried to kill some background- jobs in a script like this:

----
quit() {
        kill %1        
        exit 0
}
...

trap 'quit' 1
trap 'quit' 2
trap 'quit' 3
trap 'quit' 9

ringcompare &
ringdetect
----

Geode ~ $ ./ringdetect.sh 
kill: invalid number '%1'

Looks like kill does not support specifying jobs?
Is there any other way to finish a script and automatically stop all it's 
jobs?


Anyway thanks a lot for busybox :-)

cheers Alex
-- 
Alexander Krause
Amtmann-Kästner-Platz 11
99091 Erfurt

Mail alexander.krause at erazor-zone.de
Tel. +49 (179) 4725826
Fax. +49 (361) 6008915



More information about the busybox mailing list