  | | | CRON issue | CRON issue 2007-03-14 - By Tech Guy
Back ? Hello,
I am trying to troubleshoot a CRON issue : CRON doesn't run my scripts but when run outside the CRON, the script runs perfect.(The same script was running since a year and suddenly it stopped since a month. Nothing got changed in the script or the env). The OS is RHAS 3.0, update 8.
To troubleshoot further, I wrote a small script to output the date command which is as below
vi test.sh -- ---- ---- ---- ---- ---- ---- -- #!/bin/bash /bin/date > /home/test/test.out -- ---- ---- ---- ---- ---- ---- -- then I added entries in the CRON:
15 10 * * * /home/test/test.sh > /home/test/testcron.out 2>&1 -- ---- ---- ---- ---- ---- ---- --
The CRON again doesn't seem to be running the script. The script worked fine when I execute it from the command propmt $ ./test.sh
Has anyone experienced this kind of issues before. I verified the environment too but still cannot figure out the cause.
I appreciate your response.
Thanks TG <P> <BR> Hello,<BR> <BR> I am trying to troubleshoot a CRON issue : CRON doesn't run my scripts but when run outside the CRON, the script runs perfect.(The same script was running since a year and suddenly it stopped since a month. Nothing got changed in the script or the env). The OS is RHAS 3.0, update 8.<BR> <BR> To troubleshoot further, I wrote a small script to output the date command which is as below<BR> <BR> vi test.sh<BR> -- ---- ---- ---- ---- ---- ---- --<BR> #!/bin/bash<BR> /bin/date > /home/test/test.out<BR> -- ---- ---- ---- ---- ---- ---- --<BR> then I added entries in the CRON:<BR> <BR> 15 10 * * * /home/test/test.sh > /home/test/testcron.out 2>&1<BR> -- ---- ---- ---- ---- ---- ---- --<BR> <BR> The CRON again doesn't seem to be running the script. The script worked fine when I execute it from the command propmt $ ./test.sh<BR> <BR> Has anyone experienced this kind of issues before. I verified the environment too but still cannot figure out the cause.<BR> <BR> I appreciate your response.<BR> <BR> Thanks<BR> TG </P> <br><br> <Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style='font -family:Verdana;font-size:11px;line-height:15px;'><TR><td><a href='http:/ /adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signature-home.htm /1050715198@(protected)/1120029_1114336/1119255/1?PARTNER=3&OAS_QUERY=null target =new '><img src =http://imadworks.rediff.com/cgi-bin/AdWorks/adimage.cgi/1120029 _1114336/ alt='Imagine' border=0></a></td></TR></Table> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ Redhat-install-list mailing list Redhat-install-list@(protected) https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request@(protected) Subject: unsubscribe
|
|
 |