On Wed, Jun 11, 2008 at 03:24:34PM +0200, HelLViS69 wrote: > Secondo me ti conviene scrivere un file (ad esempio /var/run/tuoscript ) > con dentro il pid dello script, e quando vuoi uscire basta lanciare un > killall -9 `cat $PIDFILE` > Attenzione, o fai kill -9 pid o fai killall -9 nome, quindi e' corretto mettere kill -9 `cat $PIDFILE`. Una possibile alternativa se non si dispone di un pidfile e' usare pgrep, tipo kill -9 `pgrep -f "ilmioprocesso conquestoargomento"` -- Franco (nextime) Lanza Busto Arsizio - Italy SIP://casa@casa.nexlab.it NO TCPA: http://www.no1984.org you can download my public key at: http://danex.nexlab.it/nextime.asc || Key Servers Key ID = D6132D50 Key fingerprint = 66ED 5211 9D59 DA53 1DF7 4189 DFED F580 D613 2D50 ----------------------------------- echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D212153574F444E49572045535520454D20454B414D204F54204847554F4E452059415020544F4E4E4143205345544147204C4C4942snlbxq | dc -----------------------------------
Attachment:
signature.asc
Description: PGP signature