Hi! I have a cgi script which goes through the directories in my site and search for files which have been modified for the past 7 days. It would then write the results into a .shtml file. I have tried to get crontab to do this everyday at midnight. But whenever the crontab runs, the results of the script is never output to the .shtml. In addition, when I receive a mail from crontab it keeps showing the result which is only printed when there are no new files for the past 7 days. However, when I run the script through my browser, it outputs the correct results and shows that there were new files for the past 7 days and this is written to the .shtml file.
Does anyone know why I'm encountering this problem and also does anyone know where I can learn more about crontab and how to configure cgi scripts to run under crontab? I search around and basically they all tell me how to make the crontab file but tell me nothing about troubleshooting it. Would apprecite any help. Thank you.
Julian
Does anyone know why I'm encountering this problem and also does anyone know where I can learn more about crontab and how to configure cgi scripts to run under crontab? I search around and basically they all tell me how to make the crontab file but tell me nothing about troubleshooting it. Would apprecite any help. Thank you.
Julian