* trouble with CRON
@ 2002-04-16 12:24 Shroyer-Matchan, Cherie (SHROYECL)
2002-04-16 15:12 ` Scott Taylor
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Shroyer-Matchan, Cherie (SHROYECL) @ 2002-04-16 12:24 UTC (permalink / raw)
To: linux-admin
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???
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: trouble with CRON
2002-04-16 12:24 trouble with CRON Shroyer-Matchan, Cherie (SHROYECL)
@ 2002-04-16 15:12 ` Scott Taylor
2002-04-16 15:26 ` Kyle
2002-04-17 8:08 ` terry white
2 siblings, 0 replies; 4+ messages in thread
From: Scott Taylor @ 2002-04-16 15:12 UTC (permalink / raw)
To: linux-admin
At 05:24 AM 16/04/2002, Shroyer-Matchan, Cherie (SHROYECL) 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???
Any error logs? Check your root mail, or better yet, add an alias in
/etc/aliases for "root: YourNormalUserID" and run newaliases.
Make sure there are no blank lines in your crontab, use # for spacing lines
and no blank line at the end of the file. If this is the case, you should
at least get an error message from the cron daemon in root's email.
One last thing, you might want to make this a script and have cron run the
script, instead of a bunch of piped commands in your crontab file.
HTH
Scott.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: trouble with CRON
2002-04-16 12:24 trouble with CRON Shroyer-Matchan, Cherie (SHROYECL)
2002-04-16 15:12 ` Scott Taylor
@ 2002-04-16 15:26 ` Kyle
2002-04-17 8:08 ` terry white
2 siblings, 0 replies; 4+ messages in thread
From: Kyle @ 2002-04-16 15:26 UTC (permalink / raw)
To: Shroyer-Matchan, Cherie (SHROYECL), linux-admin
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: trouble with CRON
2002-04-16 12:24 trouble with CRON Shroyer-Matchan, Cherie (SHROYECL)
2002-04-16 15:12 ` Scott Taylor
2002-04-16 15:26 ` Kyle
@ 2002-04-17 8:08 ` terry white
2 siblings, 0 replies; 4+ messages in thread
From: terry white @ 2002-04-17 8:08 UTC (permalink / raw)
To: linux-admin
on "4-16-2002" "Shroyer-Matchan, Cherie (SHROYECL)" writ:
: 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 &
The first form of this command is used to install a new
crontab from some named file or standard input if the
pseudo-filename ``-'' is given.
... from my reading of it, a cron entry is looking for a 'named' file,
rather than, a string of commands ...
--
... i'm a man, but i can change,
if i have to , i guess ...
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-17 8:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-16 12:24 trouble with CRON Shroyer-Matchan, Cherie (SHROYECL)
2002-04-16 15:12 ` Scott Taylor
2002-04-16 15:26 ` Kyle
2002-04-17 8:08 ` terry white
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).