Okay, so I have had a quick look at the answers posted on this question and re-formulated my cron job. So, let me break this down as clear as I am able to:
PC/OS | Shell Info
I am currently running Lubuntu 14.04LTS x64 on my Toshiba Laptop. Basically I have (at present) a shell script that copies directory A, B, C, D, E, F and G to my Dropbox Directory, and a local copy. For all intents and purposes, let us call this example.sh
which is stored in the folder /home/user/documents
. I have read up on Cron Jobs, watched a few videos etc. and have had no luck with this.
To clarify, I have tested the script and it works. My first idea was the following:
Open a terminal and run crontab -e
and manually add the following:
30 * * * * michael home/Documents/example.sh
and even
@hourly michael home/Documents/example.sh
I have tried as root, and as also removing the user part. This has not helped.
Recently, I watched a video of where you go root and navigate to etc/cron.hourly/
and create the file, and change the ownership. I employed all of the above (followed the video exactly) and I was still not able to complete this process. Confused, I tried to re-do process 1, and instead of home/michael/Documents
I pointed to the above location and have had no luck.
The frustrating point here is I am missing something incredibly simple (like, uh, this question I did!!).