trouble with CRON
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......
Quoted 30 lines · Kyle
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)"
Quoted 15 lines · <[email protected]> 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.Quoted 6 lines
Any ideas???
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected] More majordomo info at
Quoted 9 lines
__________________________________________________
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 [email protected]
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/