On Wed, Mar 13, 2002 at 01:09:12PM -0800, Larry Price wrote:
>
>The Problem:
>
>I wanted to send myself a listing of files in a directory from a remote
>machine.
>
>How I solved it:
>$ ls -l /path/foo > bar
>$ mail -s"listing of /path/foo" [EMAIL PROTECTED] < bar
>
>How I tried to solve it:
<snip>
>more exotic variants:
>$ mail -s"blah" [EMAIL PROTECTED] < (ls -l /path/foo)
>unexpected token '('Try that with no space between < and ( ; under bash and zsh, should give you process substitution, the part outside the <( ) sees a file named /dev/fd/NNN , containing the output of the command inside. I'm not familiar with an equivalent for classic Bourne shell, you might have to do $ ls -l /path | mail -s "output" [EMAIL PROTECTED] -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759.
