Re: Checking If process is running

From: scriptOmatic (ScriptOmatic_at_ChironComputing.Com)
Date: 05/28/03


Date: Tue, 27 May 2003 22:05:54 GMT

Courtney Messam wrote:
>
> Hi Guys,
> I currently have this process that monitors some stuff on my server. Every
> time somebody tries to execute the script I want to check if the script is
> already running. I have issued this command below and I get two processes
> returning but I am expecting only one. This does not help what I want to do
> and sometimes I get incorrect response when I check if a process is running.
> ---------------------
> neptune:$ ps -ef | grep -v "grep" | grep "uptime.ksh"
>
> oracle 28992 300 0 May 14 ? 0:00 sh -c /admin/monitor/uptime.ksh
> >>/data/log/monitor/uptime
> oracle 28996 28992 0 May 14 ? 0:00 /bin/ksh
> /admin/monitor/uptime.ksh
> --------------------
>
> 1. First of all, is there a way to run the ps command or equivalent command
> to only show one process
> 2. Why am I see 2 processes in the output?
>
> Thanks guys

Courtney,
If you would like a web interface, your shell script "uptime.ksh" can
be plugged into OpenSysMon -- see http://www.opensysmon.com

-- 
http://ftp.opensysmon.com is a shell script archive site with an
open source system monitoring and network monitoring software package.
Many platforms are supplied already compiled.


Relevant Pages

  • Re: Checking If process is running
    ... Courtney Messam wrote: ... > time somebody tries to execute the script I want to check if the script is ... is there a way to run the ps command or equivalent command ... open source system monitoring and network monitoring software package. ...
    (comp.unix.questions)
  • Re: Command IDs & Dynamic Menus
    ... You're going to need a range of IDs distinct from those that might appear on the rest of the menu or on toolbar buttons, because a command is just a command, regardless of what was pushed to generate it. ... where each system has a popup menu underneath the "Monitoring" menu and each of these menus are identical. ... Then at startup, I'll load this template and append it to the monitoring menu once for each system, using the names given in the file. ...
    (microsoft.public.vc.mfc)
  • Homeland Security is Watching.......
    ... A "privacy compliance review" issued by DHS last November says that since at least June 2010, its national operations center has been operating a "Social Networking/Media Capability" which involves regular monitoring of "publicly available online forums, blogs, public websites and message boards." ... A DHS official familiar with the monitoring program said that it was intended purely to enable command center officials to keep in touch with various Internet-era media so that they were aware of major, developing events to which the Department or its agencies might have to respond. ...
    (rec.music.gdead)
  • Re: checking the files in a directory
    ... mike wrote: ... Please check out OSM at http://www.opensysmon.com, ... -- http://ftp.opensysmon.com is a shell script archive site with an open source system monitoring and network monitoring software package. ...
    (comp.unix.shell)
  • Re: Logiing TS logon/logoffs and activity...
    ... For monitoring current running apps / process. ... This command will list all process the current logged inn user is running. ... > Or you could make your own, very simple logon report by adding a ...
    (microsoft.public.win2000.termserv.clients)