I basically have a cron job that runs every night that updates thousands of products in my database.
The reason I run cron at night is because there will be less latency on the servers, because not many people visit the site at this time, cron can work for many days without any interference.
Here's what the cron job command looks like
30 23 * * * /usr/bin/php /var/www/ul/prices_all.php >> /var/www/ul/log/prices_all.txt
What I would like to know is it possible to create a cron task that kills this process after 5 hours, for example.
30 05 * * * kill /var/www/ul/prices_all.php[process]
mk_89 source share