bash - How can I direct output from a program to the console and a log file at same time? -


How can I print output for the terminal and file at the same time?

  $ Pearl Foo.PL> Foout.txt  

does not allow me to see the live process.

Is there any way that I can see the output process in real time and finally output the screen on a file?

perl foo.pl | Foout.txt


Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c# 3.0 - Issue with getting 2 chars from string using indexer -