simultaneous copy to multiple media

Rolf Zwart rpz.NOSPAM at xs4all.nl
Sun Mar 20 16:06:03 EST 2005


Swaroop C H wrote:
> [...]
> If you are using *nix, maybe you can use the `tee` command[1] and
> redirect the file to different places.
> 
> For example,
> 
> cat <somefile> | tee file1 | tee file2 > file3
On Unixes I know, only 1 process is needed:
<infile tee outfile1 outfile2 outfile3 ... >/dev/null
It does work!

** Rolf
> 
> I haven't tried it out but it should work.
> 
> [1]: http://unixhelp.ed.ac.uk/CGI/man-cgi?tee
> 
> HTH,




More information about the Python-list mailing list