I have a report that I am trying to run with the below script.  I use
crontab to start the job although the job never seems to start.

Does the script look good, do you see any problems?

How can I tell why it failed or if it did attempt to run at the scheduled
time?

 cat /etc/cron.d/sarg.weekly
#!/bin/bash

#Get current date
TODAY=$(date +%d/%m/%Y)

#Get one week ago today
LASTWEEK=$(date --date "7 days ago" +%d/%m/%Y)

/usr/bin/sarg -d $LASTWEEK-$TODAY

exit 0




Jim



Reply via email to