Doug wrote:
> I am trying to troubleshoot an existing script and
> have located the point of failure. Before I make
> any changes I need to know what the bolded entry
> is doing/for:
> 
> mount /dev/dsk/$disk /mnt [b]2>/dev/null[/b]
> 
> I know that if I leave it off everything will work, but does anyone have an 
> idea what the bolded part is trying to do?

The part marked by [b]/[/b] is a stream rediction which sends all output
of stream "2" to the file "/dev/null". /dev/null is a "special" file
which discards all output and "2" is the stream for error messages,
therefore all error messages will be discardet.

----

Bye,
Roland

P.S.: Is there a way to see the whole script ?

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to