Results 1 to 4 of 4
  1. #1

    cron job help needed

    Hi Guys,
    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 > /home/username/public_html/cron/logs/setupSite.txt

    Thanks for your help.

  2. #2
    wget -O /home/username/public_html/cron/logs/setupSite.txt

    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 05:38 PM.

  3. #3
    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:
    30 23 * * * wget -O $HOME/public_html/cron/logs/setupSite.txt  <url> >> /dev/null 2>&1
    Something like that may work for you.

  4. #4
    Join Date
    Mar 2003
    California USA
    you can also use the -u flag on crontab to specify a user
    Steven Ciaburri | Proactive Linux Server Management -
    Managed Servers (AS62710), Server Management, and Security Auditing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts