[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Killing jobs?
From:       Alexander Krause <alexander.krause () erazor-zone ! de>
Date:       2007-05-31 18:54:26
Message-ID: 200705312054.26337.alexander.krause () erazor-zone ! de
[Download RAW message or body]

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@erazor-zone.de
Tel. +49 (179) 4725826
Fax. +49 (361) 6008915
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic