I am trying to set up a cron job to run a .sh file (let's call it test.sh for our purposes here)
When I am in a shell command window, if I run: sh test.sh
my file works great and does exactly what I want it to do.
However, I can not figure out to get the cron job to work correctly.
I thought it would be: /usr/bin/sh ~/test.sh
but that didn't work.
I also tried: /usr/bin/sh test.sh
and: sh ~/test.sh
and: sh test.sh
and a whole bunch of other things but I can't get it to work.
I had another file that I tested on a cron job and it worked fine like this: /usr/bin/wget http://www.mydomain.com/anothertest.php, so I can make a cron job work.
Anyways, if someone can help me know what to type into the command line to make my .sh file work I would appreciate it.