I tried created a very simple cron task that echo's "Hello World" into a file named
You can see from the screenshot, I tried:
28 23 * * * echo "Hello World" >> /tmp/example.txt 28 23 * * * root /bin/bash echo "Hello World" >> /tmp/example.txt
Also in the screenshot, you can see the date. I have also tried getting the exact date in the cron task (e.g.: 28 23 29 11 4), but that didn't work either.
I also tried using an actual file
28 23 * * * ./pingstuff
The pingstuff file just pings Google. I can run this file and it executes properly. But, when I try using it in the crontab -e, nothing happens at the scheduled time. (Times have been changed accordingly after each attempt.)
I am logged in as a super user. I have permissions to read/write/execute all of these files. I'm not really sure what I'm doing wrong.