cancel
Showing results for 
Search instead for 
Did you mean: 

stdio redirection

Subhash Kumar
Occasional Contributor

stdio redirection

Hi,

a simple doubt, i would like to redirect the output of a command to a file.

opcragt -all > test-file
but it send the errors to screen itself.

the errors and command output should goto the same file. any ideas?

thanks...
1 REPLY
James R. Ferguson
Acclaimed Contributor

Re: stdio redirection

Hi:

opcragt -all > test-file 2>&1

See the manpages for 'sh-posix'.

Regards!

...JRF...