Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

hard question about cron, sapphire cli functionality and permisisons


3 Posts   624 Views


27 July 2012 at 11:15am (Last edited: 27 July 2012 11:19am), Forum Moderator, 213 Posts


I have written the following bash file (

cd /my-web-dir/
svn cleanup
svn up
php sapphire/cli-script.php dev/build

for some reason it runs fine if I run it like this:


however, when I run it as a cron job it ALSO runs, but all of a sudden it requires a username and password for the /dev/build/

I have NO idea at all on how to fix this. Any ideas?



28 July 2012 at 1:25pm Forum Moderator, 5511 Posts

Is your cron job running as the same user as the one you're using to manually call the script.


29 July 2012 at 7:23pm (Last edited: 29 July 2012 7:24pm), Forum Moderator, 213 Posts

to be honest, I don't really know... i will have a look at it... thank you!