Re: check program if running

From: Bruce Harvey (BruceH@ROUTESCAPE.COM)
Date: Tue Jul 02 2002 - 13:48:21 EDT


Don't forget the "... | grep -v grep" to avoid finding your grep command ...
but unless the program "makes a mark somewhere" (creates a lock file, for
example), I don't know of any other _generic_ way.

BTW, you can use ps -e for a shorter output if that helps any.

---------------------------------------
Bruce T. Harvey, Special Projects
bruceh@routescape.com, www.routescape.com
Insight Distribution Systems/COAXIS, Inc.

-----Original Message-----
From: Leyden, Joseph [mailto:LeydenJ@MTA.NET]
Sent: Tuesday, July 02, 2002 1:32 PM
To: aix-l@Princeton.EDU
Subject: [aix-l] check program if running

Other than using pf -ef | grep pgm_name
is there another way to find out if a program
is running (in background or foreground) so I
would not bring up another copy of the same program?

TIA
Joe Leyden



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:02 EDT