Crontab isn't working
Hi everyone. I want schedule for explame a bash script, to write out "Hello World.".
I opened the file with command: 'crontab -e', then wrote to the last line '* * * * * sh /home/test.sh' But it isn't working, I can't see that "hello World" message. Someone can help me? Thank you! |
what's inside test.sh?
if you run ./test.sh are you able to see the "Hello World." or try this: * * * * * /home/test.sh I remove sh before the forward slash |
Yes, when I run the Shell script in terminal with 'sh /home/test.sh' command, then work good.
|
I edited my post see updated post above.
|
I saw that. But isn't good.
EDIT: Or crontab running only in the background? |
I don't know how cron interprets all *. I think you might require a number somewhere in there. And, the script will probably print to /var/log/messages if it's run from the cron daemon.
|
I solved the problem. thanks everything.
|
If you can share your solution, so others who might have the same issue is able to benefit from it. If you will be kind to share though.
|
All times are GMT -5. The time now is 07:01 PM. |