[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monitoring the number of processes

From: SZÉPE Viktor
Subject: Re: monitoring the number of processes
Date: Fri, 12 Aug 2016 18:14:51 +0200
User-agent: Horde Application Framework 5

You may also use `pgrep`

Be aware that there is no shell execution in `program with path` you have to put your script in a file.

Idézem/Quoting Tino Hendricks <address@hidden>:

I would go for a simple script containing something like

ps aux | grep the_process_name | grep -v grep | wc -l

and check for the number.


Am 12.08.2016 um 14:12 schrieb Stephen Berg (Contractor) <address@hidden>:

Is there a way to monitor a daemon that is supposed to have exactly one process showing. If the count is above one the daemon needs to be restarted.

Stephen Berg
Systems Administrator
NRL Code: 7320
Office: 228-688-5738

To unsubscribe:

To unsubscribe:

SZÉPE Viktor
+36-20-4242498  address@hidden  skype: szepe.viktor
Budapest, III. kerület

reply via email to

[Prev in Thread] Current Thread [Next in Thread]