Help me with a cron job?

Discussion in 'Site & Server Administration' started by lorien1973, Nov 11, 2005.

  1. #1
    I am trying to set up a cron job to update UPS tracking each evening....

    I have the GUI interface in my cpanel and I have one set like:

    0 */6 * * * wget http://www.domain.com/script.php

    Is that the same as?

    0 */6 * * * wget http://www.domain.com/script.php >/dev/null 2>&1

    My programmer gave me the second line to enter from the SSH, not knowing I had a graphic interface for it.

    If I enter it thru the GUI do I need the ">/dev/null 2>&1" at the end too?
     
    lorien1973, Nov 11, 2005 IP
  2. jbw

    jbw Peon

    Messages:
    343
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2

    No, one sends the output to stdout, which then most likely gets emailed somehwere, the later drops it and stderr's output

    But why is the programmer writting cron scripts that need to go through the web server and not just in cli mode ?
     
    jbw, Nov 12, 2005 IP