On Sat, Mar 15, 2003, Shaul Karl wrote about "Re: pipe question": > Am I right that you could have done it in C (as well as with other > languages) by duplicating the file descriptors, redirecting some of them > and so on? The reason for asking is that bash has some of these > capabilities:
I don't think so... What you want is the same data to be written to do different files, or at least two different file descriptors. I don't know of any way of doing that besides actually calling write() twice to write the data to the two fds. This is what tee, or zsh's multios feature, does. Duplicating a file descriptor will get you two different file descriptors pointing to the same file - which is I think is the opposite of what the original poster wanted. -- Nadav Har'El | Saturday, Mar 15 2003, 12 Adar II 5763 [EMAIL PROTECTED] |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |If you drink, don't park; Accidents cause http://nadav.harel.org.il |people. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]