Run a cron job only of the output of the previous job is removed
How do i set a cron job to post a file only when the previous file has been changed/renamed to avoid the file being over written?
Thank you for your question on running a conditional cron job. A cron job is only a timed script. The fact that it is a cron has no bearing on the script itself. This means that the script will need to be written to check for the previous file and if it is still there, it will not run.
Technically the cron will still run, but the script will decide whether or not to create a new file or not.
Like this Question? Tweet
Related ArticlesInfographic-How to Implement SSL Certificates
How to Remove an Email Forwarder Using cPanel
Disabling Two-Factor Authentication for Reseller Child Accounts
How to Configure and Use Two-Factor Authentication
cPanel App for iOS
You are NOT logged in. You can still browse our Support Center.
To participate within our Community Support Forum: