The following web pages contain very good stuff for Solaris tips.
http://www.pcnetcom.net/solaris.htm: Solaris tips
http://www.columbia.edu/~rtt2101/iaoq/: Solaris Infrequently Asked and Obscure Questions
http://www.bolthole.com/solaris/solaris_hints.html: Solaris hints
Tuesday, May 6, 2008
Solaris tip web sites
Posted by Admin at 5/06/2008 04:17:00 PM 0 comments
Labels: unix
/dev/null 2>&1
In UNIX environment, the following situation happens frequently:
script.sh > /dev/null 2>&1
What is this for?
"> /dev/null" means send standard output to the 'bit bucket" or in other words, throw it away.
"2>&1" means "redirect standard error (2) to the same place as standard output (1.)
Posted by Admin at 5/06/2008 03:01:00 PM 0 comments
Labels: unix
Subscribe to:
Posts (Atom)