According to this site I set up cron to execute a script for me, first just trying to get it to work with cat before doing the actual work I need to do (actual work will need root priviliges so I did everything as root to make my life easier later):
me> sudo su root> crontab -e
Edited the file as follows, leaving a blank line at the end:
SHELL=/bin/bash #which cat outputs /bin/cat PATH="/bin" # execute this every minute, if it works, change cat to my script 1 * * * * cat /home/me/source.txt 1> /home/me/destination.txt
According to this SO question, restarted the cron service to be sure it loads changes after saving the file and exiting the editor:
root> service cron restart
And then waited for a few minutes. Nothing happened. Then restarted the computer. Again, nothing. Where did I do it wrong?