Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]funny bug
- To: tlug@example.com
- Subject: funny bug
- From: vp@example.com (Viktor Pavlenko)
- Date: 30 Mar 2001 10:46:38 +0900
- Content-Type: text/plain; charset="ISO-2022-JP"
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <VC5wM.A.0QC.BW-w6@example.com>
- Resent-Sender: tlug-request@example.com
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 ] [pP]rog_name thing filters out the grep process which works fine ... unless your current directory contains prog_name file! if [ `ps -ef | grep '[pP]rog_name' | wc -l` -ne 0 ] fixes the problem. I wonder if a funny bugs collection exists somewhere on the Net. If not, let's start one on the TLUG website :) Viktor
Home | Main Index | Thread Index
- Prev by Date: Re: Linux magaxines
- Next by Date: Re: funny bug
- Prev by thread: binding keys in KDE
- Next by thread: Re: funny bug
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links