[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script per sapere se un processo ? attivo



>>>>> "Luigi" == Luigi Montella <luigi@dynamica.it> writes:

 
Luigi> io farei :

Luigi> emacspid=`pidof emacs`...

farei la stessa cosa :-)

>> emacspid=`ps -u $USER |awk '$4=="emacs"{print $1}'`
>> if [ $emacspid ]; then ...
 
-- 
Hedi Berriche
mailto:hedi.berriche@btinternet.com

This is Linux Country.
In a quiet night,
you can hear Windows
reboot.



Reply to: