[plug] writing to file and screen

Ryan ryan at is.as.geeky.as
Fri Mar 12 14:24:37 WST 2004


On Fri, 2004-03-12 at 14:20, Ryan Smith wrote:
> hello
> 
> I was just wondering is it possible to run a program and dump whatever
> is on the screen to an output file. This is for tafe, the lecturer wants
> to see the output of the programs we make. It is very hard to see what
> I am typing when I use my_program > output.txt.

You can use tee:

./my_program | tee output.txt

Ryan




More information about the plug mailing list