Quantum0726 |
11-14-2005 12:45 PM |
Redirecting to file and stdout
Hi, I would like to find a way to be able to redirect output to a file, but still have it display on the screen, i.e. just copy it to a file as the command is running. Now I have been using the standard &> operator to redirect it all to a file, using the command in a screen. Then I run tail -f on the file and I can see the output as it's written. Is there a way to do this using redirection operators? Or just a better way than I am doing it?
Thanks much!
|