On Monday 20 January 2003 1:21 pm, someone claiming to be Net Llama! wrote: > On Mon, 20 Jan 2003, Tim Wunder wrote: > > On 1/20/2003 12:38 PM, someone claiming to be Net Llama! wrote: > > > A non-sendmail specific version: > > > mail -s "GNUCash update" [EMAIL PROTECTED] < "message f00" > > > > <snip> > > > > I was trying this, but it would fail on me. I just tried again and bash > > gives me this error: > > bash: message f00: No such file or directory > > > > Maybe some kind of RH8-ism is preventing this from working :-( > > Although I rather think it's user error... > > ahhh..try redirecting a file, rather than "message f00", and it should > work. there are other ways, like cat'ing something or echo'ing it.
Redirecting a file works, but how would I go about cat'ing or echo'ing an environment variable? I tried: export MSG="Some Message" mail -s "Mail Test" [EMAIL PROTECTED] < /bin/echo $MSG And I get the contents of the file /bin/echo :-( I also tried mail -s "Mail Test" [EMAIL PROTECTED] < $MSG And bash tells me "$MSG: ambiguous redirect" Oh well, back to Roger's way and using sendmail, I guess... Tim -- RedHat Psyche 8.0, stock kernel, KDE 3.1.CVS, Xfree86 4.2.1 4:00pm up 8 days, 22:29, 4 users, load average: 0.12, 0.16, 0.11 It's what you learn after you know it all that counts _______________________________________________ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
