I'm trying to run a cron job which calls a shell script that runs several queries against an Oracle database. I'm getting emails telling me that there are environment variables which are not set.
I would like to run the shell script in an environment which is as close as possible to how cron runs the script (except that I would actually like to see stdout and stderr, rather than having them echo to an email message).
I'm guessing that something like
Code:
sh --noprofile myscript.sh
should pretty well do the trick, but I may be missing something.
Also, is there a way to lauch a crontab entry manually, as if cron had just fired off? (yes, I know that I can set cron to fire off every minute, but that destroys my work flow).