Author Topic: cron command  (Read 1511 times)

petertwist

  • Posts: 9
    • View Profile
cron command
« on: April 30, 2005, 04:42:46 am »
Hi Dean, I am trying to set up the cron command, but in the host control panel it only offers the option below can I enter something here or do I have to ask support to insert the command you suggest;

Configure Scheduled Tasks
The command line below will be run on the web server for you at the interval you select. Please note that the path is absolute so if your script is called test.pl and is located in your public_html/ directory then the full path would be:-

/home/sites/yourdomain.com/public_html/test.pl.

Programs that use excessive server side resources may be banned. We take this opportunity to remind you that we so not allow permanent server processors to be run on our servers.

Please make sure you enter a valid date for your task..

Run this command...

Whenever all the following is true...

Month Day Hour Minute Day of week
 ...and email the output to...

Thanks

Peter Twist

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
cron command
« Reply #1 on: April 30, 2005, 10:00:26 am »
Peter,

I wonder if you can set the command to anything you want.  Their example doesn't state that there are limits on accessing programs, such as '/usr/bin/wget', used by ListMail.  Have you tried the ListMail default commandline as per the help at http://listmailpro.com/help/dailymail_cron.html?  The first part of the command "0 0 * * *" indicates the timing.  Basically, we need to set the values of "Minute" and "Hour" so that the task runs once per day.

You may also be able to call the PHP script directly, without wget, but for that we need to know where the 'php' executable is.  (It might be in your cgi-bin or home folder/bin).  The command might then be similar to as follows (all on one line):

/home/sites/yourdomain.com/bin/php /home/sites/yourdomain.com/public_html/mail/dailymail.php?pw=YourPass

Your host should let you know the best way to set this up on their server.  Let them know that you need to visit a web page automatically each day.

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