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/ 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/
/usr/bin/php /home/staylor/
/usr/bin/php /home/staylor/

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.


Re: Cron scripts
« Reply #1 on: April 08, 2009, 11:58:10 PM »

in case if "/usr/bin/php /home/staylor/ " 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.