Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: funny bug
- To: tlug@example.com
- Subject: Re: funny bug
- From: "Jean-Christian Imbeault" <jean_christian@example.com>
- Date: Fri, 30 Mar 2001 03:26:37 -0000
- Content-Type: text/plain; format=flowed
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <hOVBw.A.ZYC.1z_w6@example.com>
- Resent-Sender: tlug-request@example.com
Thanks for sharing the bug. Not knowing much about shell scripting I was wondering if you could explain the bug? It's a bit too subtle for me ;) Jc >From: vp@example.com (Viktor Pavlenko) >Reply-To: tlug@example.com >To: tlug@example.com >Subject: funny bug >Date: 30 Mar 2001 10:46:38 +0900 > >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 > >----------------------------------------------------------------------- >Next Nomikai Meeting: Fri, April 13 19:30- Tengu Tokyo Eki Mae >Next Technical Meeting: Sat, May 12 13:30- >----------------------------------------------------------------------- >more info: http://www.tlug.gr.jp Sponsor: Global Online Japan > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Home | Main Index | Thread Index
- Prev by Date: funny bug
- Next by Date: Re: funny bug
- Prev by thread: funny bug
- Next by thread: Re: funny bug
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links