Setting up a chron job
-
Hi I’m having trouble with the plugin picking up posts so I’m trying to set up a chron job to run the script from the server. (The plugin works fine when I set it going manually from the postie dashboard).
My host says the following on their chron setup page:
“If the scheduled program includes code from a scripting language, the path for the interpreter must be specified before the script. For example, /usr/bin/perl (Perl), /usr/bin/php (PHP 4) or /usr/bin/php5 (PHP 5)
If the script being run is adapted from a CGI script, ensure the first line of the script is a ‘shebang’ line containing the correct interpreter path – as above – (for example #!/usr/bin/perl).”
so I have tried every permutation I can think of to make this work:
https://<mysite>/?postie=get-maileg /usr/bin/php5 /home/sites/hughendenvillagehall.co.uk/?postie=get-mail
or just
/home/sites/hughendenvillagehall.co.uk/?postie=get-mail
but I just can’t figure it out and my host’s techie drew a blank too. any thoughts?
- The topic ‘Setting up a chron job’ is closed to new replies.