var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
cron job help needed
I have setup a cron job which is running fine. However, it keeps saving the output in the /root/ directory instead of the destination that I specified. Please can someone advise what is wrong. Here is the cron I am using:
wget http://www.domain.co.uk/cron/setupSite.php > /home/username/public_html/cron/logs/setupSite.txt
Thanks for your help.
wget -O /home/username/public_html/cron/logs/setupSite.txt domain.co.uk/cron/setupSite.php
I don't have 5 post yet so you'll have to finish url, as I can't post urls until 5 posts.
Last edited by hanzerik; 07-27-2005 at
And your cron job should be created as that user that owns /home/username/public_html.
login as that user and do: crontab -e and setup an job like:
Something like that may work for you.
30 23 * * * wget -O $HOME/public_html/cron/logs/setupSite.txt <url>domain.co.uk/cron/setupSite.php >> /dev/null 2>&1
you can also use the -u flag on crontab to specify a user