Skip to main content

Cron Job execute curl only if file has been modified

Comments

2 comments

  • nrcjea001
    Figured it out: [ /tmp/lastupdate -nt /my_dir_name/my_filename ] || (curl "https://...index.php?controller..." ; touch /tmp/lastupdate)
    0
  • cPanelMichael
    Hi @nrcjea001, I'm glad to see you were able to find a cron job command that worked for what you needed. Thanks for sharing the outcome!
    0

Please sign in to leave a comment.