Although there are many threads on this forum regarding cron, none have specifically answered my question. So hopefully someone can shed some light on what I'm doing wrong..
I have a perl script that I want to run in a cron job. Since I've read that cron doesn't have any environments set, I called the script inside a ksh script to be able to the set environment path (only way I knew how).. After going through this, the cron job still isn't working.. I've manually tested the script(s) many times with success, so I'm thinking that it has to be an environment issue? TIA
#!/bin/ksh
set PATH=/home/<user>/bin
export PATH
/home/<user>/bin/perlscript.pl
I have verified that myscript.sh executes successfully, but the cron job seems to be where my trouble is.. Hopefully someone can point out my mistake(s).
I figured out what I was doing wrong, I had the cron job incorrect. It was running every 1st minute of the hour.. I wanted it to run every minute (for testing).. So it should have been * * * * *, instead of 1 * * * *.. Idiotic, i know..