In article < XXXX@XXXXX.COM >,
:System: IRIX (SGI Octane2)
:Place: IRIX Console
:Question: How to make an error command output into the file?
:The Linux trick doesn't work.
:#anycommand 2>&1 |tee filename.txt
:I need to get error messages from command line into the TXT files
:for farther analyzing.
If the '#' indicates a 'sh' or 'ksh' prompt, then that should
work. Some systems, though, use csh as the root shell.
If you are not executing as root, then your shell is probably csh
instead of sh or ksh.
You should be able to check your shell by commanding
If it is csh then my recommandation would be to change
your shell. (Yeah, you could look up the syntax in the csh
man page, but at the end of that you'd still be in csh :( )
Oh, yeah, an African swallow maybe, but not a European swallow.
That's my point.