On Wednesday 31 January 2007 14:57, Roy Souther wrote: > Anyone know how in BASH to split an STDOUT stream? > > I want to take the output from a program and pipe it to two other > programs, one to log the binary stream to a file and the other to use > the binary stream as it normally would. > > I could write a BASH script that does some complicated cat of proc fd > objects but I would like to know if there is a more efficient way first. >
It's funny you bring this up because I was just reading this [1] interview and there is a section where Jens talks about the recently added kernel syscalls for doing splice/tee without the overhead of extra copies of the traditional tee. I haven't had a chance to try it out but if you have a recent kernel, it might be cool to play with. It also looks the userland utils are pretty new and will probably need to be built from source using the git repo listed in that article. [1] http://kerneltrap.org/node/7637 Regards, ~Scott _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

