Author Topic: Setting up crontab on Plesk  (Read 1743 times)

crossroads

  • Posts: 4
    • View Profile
Setting up crontab on Plesk
« on: June 22, 2005, 05:04:12 am »
I am having a hard time getting the Crontab to work.  

First I tried this method:

0 0 * * * /usr/bin/wget -O /dev/null -T 0 http://crossroadsbuilder.net/listmail/dailymail.php?pw=(mypass) 1> /dev/null 2> /dev/null

I did a phpinfo search on my domain and don't think wget exists.  So I tried this method:

0 0 * * * curl -o /dev/null http://crossroadsbuilder.net/listmail/dailymail.php?pw=(mypass) 1> /dev/null 2> /dev/null

Either way I get an email back saying:

0: not found

(Note: I have bounce.cgi configured and when I click Test Mail Settings it works fine)

Any help would be appreciated :)

Shaun Roos

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Setting up crontab on Plesk
« Reply #1 on: June 23, 2005, 11:50:11 am »
Hi Shaun, I apologize for the delay.

Quote
I did a phpinfo search on my domain and don't think wget exists. So I tried this method:

phpinfo() will not tell you if wget is available on the server - With Plesk, by default, it is there.  I recomend retrying with /usr/bin/wget

Quote
Either way I get an email back saying:

0: not found

This could explain where the problem lies.  I wonder if you've input the timing (0 0 * * *) in the command box.

Note: This timing means once per day at midnight - it works backwards so 1:15am would be 15 1 * * *

In Plesk's control panel / cron section you will see entries for "Minute", "Hour", "Day of the Month", "Month", and "Day of the Week".  These need to be set to 0, 0, *, *, and * respectively, with the "Command" as follows:

/usr/bin/wget -O /dev/null -T 0 http://crossroadsbuilder.net/listmail/dailymail.php?pw=(mypass) 1> /dev/null 2> /dev/null

Please let me know if you need further assistance!

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting