1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Quick Cron Tab questions

Discussion in 'Plesk for Linux - 8.x and Older' started by INTEL, Dec 25, 2006.

  1. INTEL

    INTEL Guest

    0
     
    i have this setup in my cron manager

    45 23 * * * wget -q -O /dev/null /var'/www/vhosts/domain.net/private/cron/cron_renewal.php'

    does that look correct?

    also, on top of that file, im including

    #!/usr/local/psa/admin/bin/php

    This is a very important cron job and i want it to definately run at 11:45 tonight.

    Any input is greatly appreciated.
     
  2. blank_page

    blank_page Regular Pleskian

    24
    53%
    Joined:
    Dec 17, 2006
    Messages:
    229
    Likes Received:
    0
    Hello,

    I do not think that is correct.

    I would run it like this:

    45 23 * * * /usr/bin/php -q /var/www/vhosts/domain.net/private/cron/cron_renewal.php

    eventually redirect to > /dev/null 2>&1
     
  3. INTEL

    INTEL Guest

    0
     
    Thank you for your reply. I changed it to:

    45 23 * * * /usr/bin/php -q /var/www/vhosts/domain.net/private/cron/cron_renewal.php

    How would I eventually redirect to > /dev/null 2>&1
     
  4. blank_page

    blank_page Regular Pleskian

    24
    53%
    Joined:
    Dec 17, 2006
    Messages:
    229
    Likes Received:
    0
    Hello,


    45 23 * * * /usr/bin/php -q /var/www/vhosts/domain.net/private/cron/cron_renewal.php >/dev/null 2>&1

    would be the whole cronjob.
     
  5. INTEL

    INTEL Guest

    0
     
    Excellent. Thank you!
     
Loading...