From: johnjulian1@netscape.net Subject: RE: Re: trouble with CRON Date: Tue, 16 Apr 2002 13:06:42 -0400 Sender: linux-admin-owner@vger.kernel.org Message-ID: <6A2027AB.5CBFEFB9.4DAE6F57@netscape.net> Content-Transfer-Encoding: 8bit Return-path: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 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)" > 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/