Results 1 to 5 of 5
HI all
I've created cron file and it's entry is as below:
28 * * * * ls -lh > /tmp/aa.txt
But it doesn't running in every 28th minute of ...
- 02-15-2009 #1Just Joined!
- Join Date
- Jan 2007
- Posts
- 9
[SOLVED] My Cron is not working
HI all
I've created cron file and it's entry is as below:
28 * * * * ls -lh > /tmp/aa.txt
But it doesn't running in every 28th minute of hour. What may be the reason?
I've created it as below:
[ejdaha@localhost]crontab -e
Changed it .. then give a list
[ejdaha@localhost]crontab -l
See my cron there.
But it doesn't work ..
Thanks for suggestions
- 02-15-2009 #2
try putting you command as
/bin/ls
- 02-15-2009 #3Just Joined!
- Join Date
- Jan 2007
- Posts
- 9
I changed it to full address, now its working. But my sh file is not working. My crontab's entry is :
* * * * * /home/oracle/sh/test.sh
What may be the reason?
Thanks.
- 02-15-2009 #4
have you given execute permission to your "test.sh"
then try changing it to "/bin/sh /home/oracle/sh/test.sh"
(it may not work) test it.
to execute shell script from CLI it should be initiated with "./" or "sh"
- 02-16-2009 #5Just Joined!
- Join Date
- Jan 2007
- Posts
- 9
Thank you very much
I solved this problem by exportin all Oracle's Environment variables
Thanks ...


