Mailing List Archive

Support open source code!

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

Re: funny bug

>Viktor Pavlenko wrote:
>> I want to share with you a bug in my shell script I discovered
>> yesterday. The script was in production for quite a while...
>> In the shell script I test if a process is running:
>> if [ `ps -ef | grep [pP]rog_name | wc -l` -ne 0 ]
>Why not:
>if killall -0 prog_name ?

Thanks for the tip (which I can't use: the script is on HPUX:(


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links