Closing only stderr in a sh(1) command.
Guy Harris
guy at auspex.auspex.com
Sat May 5 05:28:18 AEST 1990
>The following should do what you want:
>
> ls *.o 2>/dev/null | some-util
And may also do a bunch of stuff that he *doesn't* want, namely throwing
out any *other* error messages that might occur (like "I/O error" - yes,
I *have* had that happen, with a disk that occasionally went
offline; the appearance of "I/O error" was a signal that it was time to
run off and reset the disk - or "Connection timed out").
More information about the Comp.unix.questions
mailing list