I am running a real estate website that requires a daily download of some very large image files from a central server. I set up a cron job to run a script to download the files, but have further questions.
I originally had an unzip command in the script and some further file manipulations:
$output = `unzip /home/yyyyy/public_html/yyyyy/filename.zip -d /home/yyyyy/public_html/yyyyy/thedirectory/`;
echo $output;
My issue is that the script times out after 5 minutes. It begins the download and then after 5 minutes, it sends the report to the email address on my cron account. Additionally, it does not run any of the commands after the download command. I have watched my site by ftp while the cron is running and I can see the file size inflating for a while after the 5 minutes, so I know that it is still downloading. I have had to move the unzip and other commands into a separate file and run a second cron for them. Some of the files are smaller and can be done in under 5 minutes. Those handle the unzip and other commands perfectly.
All that being said, my question is: is there a way to adjust the run time of a script so that all my commands can be in 1 script?
Hope this is not too confusing.