I use crontab -e to add the following:
*/1 * * * * /bin/echo "Hello" >> /home/varunb/hello.txt
But it does not work!
command is fine and works if I run it directly on command prompt.
But for every minute i am testing crontab to work. Its not working.
Please suggest me.
It was working for all the users and root user also, suddenly stoped working last week.
So just gave the example for root user, which is not working.
dont know what is the problem???
linux-3jcp:/home/varunb # cat /etc/issue
Welcome to SUSE Linux Enterprise Server 10 SP2 (x86_64) - Kernel \r (\l).
linux-3jcp:/home/varunb # ls
.bash_history .viminfo
linux-3jcp:/home/varunb # date
Fri Jan 25 12:37:52 GMT 2013l
inux-3jcp:/home/varunb # /bin/echo "Hello" >> /home/varunb/hello.txt
linux-3jcp:/home/varunb # cat hello.txt
Hello
linux-3jcp:/home/varunb # date
Fri Jan 25 12:38:03 GMT 2013
linux-3jcp:/home/varunb # date
Fri Jan 25 12:39:10 GMT 2013
linux-3jcp:/home/varunb # cat hello.txt
Hello
linux-3jcp:/home/varunb #
Also i am running as root, i don think there will be issue with the permissions.
checked below url even
[http://stackoverflow.com/questions/7...ab-not-working](http://stackoverflow.com/questions/7671484/crontab-not-working)
don know what is the problem???
and i don find
/var/log/cron.log
/var/log/cron
files.
only /var/spool/cron/
linux-3jcp:/var/spool/cron/tabs # pwd/var/spool/cron/tabs
linux-3jcp:/var/spool/cron/tabs # ls
root varunb wwwrun
linux-3jcp:/var/spool/cron/tabs # cat root
#!/bin/sh
*/1 * * * * /bin/echo "Hello" >> /home/varunb/hello.txt