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: Shimpei Yamashita <shimpei@example.com>
- Date: Fri, 6 Apr 2001 08:06:10 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <3ACCC906.B89CB016@example.com>; from fredric.fredriksson@example.com on Thu, Apr 05, 2001 at 09:35:34PM +0200
- References: <3AC3E57E.12514.001@example.com> <3ACCC906.B89CB016@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <DeVfdC.A.0Y.RxPz6@example.com>
- Resent-Sender: tlug-request@example.com
On Thu, Apr 05, 2001 at 09:35:34PM +0200, Fredric Fredricson wrote: > 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 ? It won't be portable to other Unices that don't necessarily have killall installed. On the other hand, ps(1) is just about the least portable Unix command there is (I don't think the above example would work on BSD-ish systems, for example), so maybe it isn't an improvement at all. -- Shimpei Yamashita http://www.shimpei.org/
- References:
- Re: funny bug
- From: Fredric Fredricson <fredric.fredriksson@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: funny bug
- Next by Date: Re: funny bug
- Prev by thread: Re: funny bug
- Next by thread: Re: funny bug
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links