On Wed, 13 Mar 2002, Kahli R. Burke wrote: > I think you're thinking about this in reverse. Instead of trying to > override stdin with the output of a command like this: > > command1 < [command2] > > do this: > > command2 | command1
This is what I usually do; in this case I was trying to do it with one line instead of two ;-) I think I may be suffering from platform dislocation. this works in bash on linux: $ ls -l /path/foo | mail -s"foo" [EMAIL PROTECTED] and works on /bin/sh (so why wasn't it working last night? I must have been way too short on sleep, NEVER MIND) > > I think the '<' and '>' redirectors only let you use named files. > You can actually create named pipes, which then might work in some of > your examples above, but why make it difficult. Just use the pipe directly. > > Kahli > http://www.efn.org/~laprice ( Community, Cooperation, Consensus http://www.opn.org ( Openness to serendipity, make mistakes http://www.efn.org/~laprice/poems ( but learn from them.(carpe fructus ludi)
