From: johnjulian1@netscape.net
To: Kyle <kb57442@yahoo.com>,
"\"Shroyer-Matchan, Cherie (SHROYECL)\"" <SHROYECL@UCMAIL.UC.EDU>,
linux-admin <linux-admin@vger.kernel.org>
Subject: RE: Re: trouble with CRON
Date: Tue, 16 Apr 2002 13:06:42 -0400 [thread overview]
Message-ID: <6A2027AB.5CBFEFB9.4DAE6F57@netscape.net> (raw)
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/
reply other threads:[~2002-04-16 17:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6A2027AB.5CBFEFB9.4DAE6F57@netscape.net \
--to=johnjulian1@netscape.net \
--cc=SHROYECL@UCMAIL.UC.EDU \
--cc=kb57442@yahoo.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).