Stupid scripting question -- FAQ-ish

James Bonnet jimbo
Mon May 17 11:43:16 PDT 2004


echo $MSG | mail -s "Mailtest" foo at bar.com

-jim


>
>I tried:
>export MSG="Some Message"
>mail -s "Mail Test" tim at thewunders.org < /bin/echo $MSG
>
>And I get the contents of the file /bin/echo :-(
>
>I also tried 
>mail -s "Mail Test" tim at thewunders.org < $MSG
>
>And bash tells me "$MSG: ambiguous redirect"
>
>Oh well, back to Roger's way and using sendmail, I guess...
>
>Tim
>
>  
>




More information about the Linux-users mailing list