XML Sitemaps Generator

Author Topic: Cron scripts  (Read 14431 times)


  • Registered Customer
  • Jr. Member
  • *
  • Posts: 34
Cron scripts
« on: April 08, 2009, 04:36:10 PM »
Hi, on one of our hosts they do not allow the editing of crontab.

When logged in with (almost full permissions)

The command /usr/bin/php /home/staylor/domain.co.uk/generator/runcrawl.php works and run's the crawl.
(note /usr/bin/php was changed to get it working)

So we can request the host to add a cron script to the crontab.
a file called generatorscript

that contains

/usr/bin/php /home/staylor/domain.co.uk/generator/runcrawl.php
/usr/bin/php /home/staylor/domain1.co.uk/generator/runcrawl.php
/usr/bin/php /home/staylor/domain2.co.uk/generator/runcrawl.php

But the host says the script is not setup properly. What do I need to change #!/bin/bash to?
or do I need to change /usr/bin/php to something else? /usr/local/bin/php didnt work when input directly into the command prompt.



XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10903
Re: Cron scripts
« Reply #1 on: April 08, 2009, 11:58:10 PM »

in case if "/usr/bin/php /home/staylor/domain.co.uk/generator/runcrawl.php " works when enetered manually in command line, then this part is ok.
You can try changing "#!/bin/bash" with "#!/bin/sh".

You can also ask the host what exactly they meant by "the script is not setup properly".
Oleg Ignatiuk
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.


SMF 2.0.14 | SMF © 2017, Simple Machines