Larry Price wrote:
>
>What I'm seeking:
>the bit of syntax that will let me use the output of a command
>as the input to mail obviously, but more generally
>$ command1 < ?command2?
>
>I was trying this using /bin/sh on OpenBSD but a good solution would work
>on most POSIX'ly compliant shells.
>
>Suggestions?
>
Ya,
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
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