kill ve skriptu nefunguje

Rudolf Cejka cejkar at fit.vutbr.cz
Mon Oct 27 13:44:02 CET 2008


Cizek.Milan wrote (2008/10/27):
> Ahoj,
> lamu si hlavu s nasledujicim problemem. Mam sript, ktery poustim cronem kazdou minutu.
> 
> #!/bin/sh
> kill -9 `ps ax | grep -v grep | grep 'test.pl [A-Z]' | awk '{print $1}'`
> 
> for var in A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
> do
>  nice -n 10 /home/milanc/scripts/dohled/test.pl $var &
> done

Nebyl by na to lepsi pkill?

-- 
Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic



More information about the Users-l mailing list