linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Re: trouble with CRON
@ 2002-04-16 17:06 johnjulian1
  0 siblings, 0 replies; only message in thread
From: johnjulian1 @ 2002-04-16 17:06 UTC (permalink / raw)
  To: Kyle, "Shroyer-Matchan, Cherie (SHROYECL)", linux-admin

If the process has been up for more than 24 hrs then the awk positional parameter for ezproxy would be wrong. It would be $9 instead of $8

you could try: ps -ef | grep [e]xproxy | awk '{print "kill......

Kyle <kb57442@yahoo.com> wrote:

>  One other thing to realize is that cron doesn't run
>.profile or .bashrc.  Sometimes your PATH, as well as
>other variables, needs to be setup.
>
>--- "Shroyer-Matchan, Cherie (SHROYECL)"
><SHROYECL@UCMAIL.UC.EDU> wrote:
>> I am having a problem getting a CRON job to run in
>> LINUX 6.1.  
>> 
>> I added this line to my crontab using crontab -e
>> logged in as root.
>> 
>> 0 0 * * * ps -ef |awk '$8=="./ezproxy" {print "kill
>> -9 " $2}' | sh; cd
>> /usr/local/ezproxy; ./ezproxy & 
>> 
>> This line worked on other LINUX and UNIX
>> installations.  It also works from
>> the command prompt.
>> It fails to run.
>> 
>> Any ideas???
>> -
>> To unsubscribe from this list: send the line
>> "unsubscribe linux-admin" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at 
>http://vger.kernel.org/majordomo-info.html
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>-
>To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-16 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-16 17:06 Re: trouble with CRON johnjulian1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).