Dear friends,
While going thru' the chapter of Pipes & Redirection from the *The Unix Programming Environment* (the famous yellow book by Kerninghan, et al) I read that when we use redirection, the system uses some temporary files to accomplish the task. Whereas by using pipes, the overhead of temp. files can be avoided.
Can someone throw some more light on it? Like, why shud there be requirement of temporary files, where are those temp. file stored?
I tried to find some more details on it in the docs as well as on the net, but the search wasn't very much fruitful.
Thanks in advance.
Warm Regards, $ sonpal -kj
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Sometime today, Kinjal Sonpal wrote:
While going thru' the chapter of Pipes & Redirection from the *The Unix Programming Environment* (the famous yellow book by Kerninghan, et al) I read that when we use redirection, the system uses some temporary files to accomplish the task. Whereas by using pipes, the overhead of temp. files can be avoided.
What he means is that when you do this - prompt# program1 > p1.out; program2 < p1.out
you have to create the temporary file p1.out . You can avoid this by using a pipe - prompt# program1 | program2
program1 write to the pipe and program2 reads from the pipe.
HTH.
Manish
The BSD type systems (FreeBSD and OpenBSD) can run Linux executable files. As far as I know the other way around (Linux running BSD executables) is not possible. Does any one know if something has been done about it? Or whether it can be done :-)?
Pablo. ---------------------------------------------------------------------- Pablo Ares Gastesi. School of Mathematics, TIFR, Mumbai 400 005, INDIA pablo@math.tifr.res.in http://www.math.tifr.res.in/~pablo/ ----------------------------------------------------------------------