Doug stated:
< 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?

 It directs stderr to /dev/null, any errors get sent to /dev/null.
 man sh and read the section on 'Input/Output Redirection'

 The mount succeeds if the 2>/dev/null is not there ?  Odd.

< 
< Thx!
< DY
<  
<  
< This message posted from opensolaris.org
< _______________________________________________
< opensolaris-code mailing list
< [email protected]
< http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

-- 
Sean.
.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to