mount question
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 /mnt2>/dev/null
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?
Thx!
DY
[368 byte] By [
young02a] at [2007-11-27 8:52:21]

# 1
2> indicates stderr, or standard error, what it means in your case is simply to redirect any error messages from the mount command to /dev/null .For more information on how this works, see the input/output redirection section in the manpage for your shell. .7/M.
# 3
It's presumably doing it for a reason, so you probably want to understand why the disk section referred to by the $disk variable is being mounted at /mnt. I would assume some reference to data/commands under /mnt will be made later on in the script which may give you a clue. It could also be an 'ugly' method for just ensuring the mount is there.