Nov 29, 2001 #1 62579183 IS-IT--Management Nov 29, 2001 2 CA this is a cron job, 1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1 i understand the first part, but what does this mean "> /dev/null 2>$1" need you explain, thanks
this is a cron job, 1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1 i understand the first part, but what does this mean "> /dev/null 2>$1" need you explain, thanks
Nov 29, 2001 #2 ayjaycee Technical User Mar 5, 2001 291 GB > /dev/null means "send output of this command to /dev/null" - i.e. discard it. 2>$1 means "send error messages to the same place as normal output" - i.e. discard it. http://www.tanda.f2s.com One by one, the penguins steal my sanity. Upvote 0 Downvote
> /dev/null means "send output of this command to /dev/null" - i.e. discard it. 2>$1 means "send error messages to the same place as normal output" - i.e. discard it. http://www.tanda.f2s.com One by one, the penguins steal my sanity.
Nov 29, 2001 #3 grega Programmer Feb 2, 2000 932 GB Just to add to that, if you look at the man page for sh, and read the section on Input/Output Redirection, all will be revealed. Greg. Upvote 0 Downvote
Just to add to that, if you look at the man page for sh, and read the section on Input/Output Redirection, all will be revealed. Greg.
Nov 29, 2001 Thread starter #4 62579183 IS-IT--Management Nov 29, 2001 2 CA you guys are really nice! thanks Upvote 0 Downvote
Nov 29, 2001 #5 ayjaycee Technical User Mar 5, 2001 291 GB No prob (we only do it for the Stars! ;-)) http://www.tanda.f2s.com One by one, the penguins steal my sanity. Upvote 0 Downvote
No prob (we only do it for the Stars! ;-)) http://www.tanda.f2s.com One by one, the penguins steal my sanity.