Jeff Greene ([EMAIL PROTECTED]) scribbled:
> Does anyone know of a way to redirect the output of a
> program to a file, but view at the same time?
> Basically, I want to save the output of some programs
> but want to have the option to not have to go open up
> a file to see what happened.
> 

$ gcc -Wall -o program program.c | tee outputfile.txt 2>&1

Make sure the '2>&1' is absolute last.

'tee' is the command which does what you want.

HTH,

Cooper.

--
[EMAIL PROTECTED] mailing list

Reply via email to