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?
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 ?