Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'How to capture output from certain Unix commands' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to capture output from certain Unix commands
Authored by: fracai on May 01, '08 07:58:52AM

If you'd like to output both the standard error and output to one file you can also use "&>" as in

ssh -V &> output

The above would merge both stderr and stdout to the output file.

i am jack's amusing sig file

[ Reply to This | # ]
Authored by: perturb on May 02, '08 04:48:47AM

Pedantic note: this is available in recent shells like bash, but not in older Unix sh/ksh shells (including the POSIX standard shell.)

[ Reply to This | # ]