How too know if my URL cronjob works

Discussion in 'Installation/Configuration' started by nmazza, Feb 5, 2020.

  1. nmazza

    nmazza Member HowtoForge Supporter

    Hello,
    I need a cron for one of my client, he want run this php file in the following folder /web/_s/sp.hp
    Followin de Documentation ....
    Command to run (commands are executed via sh, urls via wget)
    /var/www/clients/clientX/webY/myscript.sh or http://www.mydomain.com/path/script.php
    An so ...
    I had setup up in ISPConfig Cron Jobs, http://www.sin-limite.com.ar/_s/sp.php
    In /etc/cron.d/ispc_web5 file with ...
    MAILTO=''
    SHELL='/bin/sh'
    0 * * * * web5 /usr/bin/wget --no-check-certificate --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' -q -t 1 -T 7200 -O /var$

    What is te best way to check is working fine or not,
    because in syslog and cron log there aren't any information about the script is working fine or not.

    Thanks
    Nestor Mazza
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please do not reopen a thread which has been closed 7 years ago just to ask how to see if your cronjob works..... I moved your post to a new thread.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    And for the answer, take a look at the access.log of the site, you should see a request to the URL there.
     
  4. nmazza

    nmazza Member HowtoForge Supporter

     
  5. nmazza

    nmazza Member HowtoForge Supporter

    Thanks, I’ll see the access log

    I’m sorry for re open.
    Nestor Mazza
     
  6. nmazza

    nmazza Member HowtoForge Supporter

Share This Page