On Thu, 25 Sep 2003 12:35:01 -0500, Lansing, Dan 
<Dan.Lansing at AndersenCorp.com> wrote:

> Ok...perhaps I should have been more specific....i am familiar with 
> chron, grep and ps....how would I combine these to write a script to do 
> this??


if [ps -ef |grep -v grep | grep process != a hit]
then
	start the process
else
	mail Dan < "the process still runs!"
fi

run that though cron every minute.




>
> Dan Lansing
>
> -----Original Message-----
> From: tclug-list-admin at mn-linux.org 
> [mailto:tclug-list-admin at mn-linux.org] On Behalf Of Johnny Fulcrum
> Sent: Thursday, September 25, 2003 12:24 PM
> To: tclug-list at mn-linux.org
> Subject: Re: [TCLUG] running services---beware of n00b
>
>
> yes!  write a script to check if the process is running and restart if
> need be.  Then run a that script though cron and at your desired 
> frequncey.
>
> you could use ps -ef and grep for the process pid if you know it  - or 
> the
> process name... if there's only one running...
>
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org tclug-list at mn-linux.org
> https://mailman.real-time.com/mailman/listinfo/tclug-list
> L"�Ƣ�)�.+-2)�y�h�+?J�ںS"�w��֡���0�yb��h�\��%��f�X��+�m���������y�m�g��o�j)fj��b��?��n�X�



_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list