5

Why doesn't this script output to a text file when run from cron?

view full story
linux-howto

http://askubuntu.com – I have created a Shell Script as below Sample.sh echo "Hi there" I also added cron job in cron tab which is under /etc/crontab as below * * * * * /home/Sample.sh > /home/Sample.txt I have created the Sample.txt file in /home/ directory. I have also checked the permission for read and write for both the file When I execute the Sample.sh file it works fine.it writes in Sample.txt file Now I don't understand why it is not writing in the Text file from the cron task i scheduled I am using Ubuntu 10.04 Please Help me in fixing this issue (HowTos)