I am very, very confused.
I have a very simple script that I want cron to run. This script takes the output of another script I created (that WILL run in cron) and outputs it to a file as well as prints the file to my local printer.
Here is the script:
Code:
_now=$(date +"%Y_%m_%d-%I%p")
_file="eDMStatus_$_now.txt"
/home/TheAlmightyOS/edm_reports/report.sh > "$_file"
lp /home/TheAlmightyOS/edm_reports/"$_file"
I run this script from the command line and it does exactly what it is intended to do. However, the moment I put it in crontab.... nothing.
I tested my crontab entry by replacing this file with report.sh >> crontest.log and it worked flawlessly. So the cron setup is not the issue. I think it is something in my script it doesn't like. Any suggestions?