ot: mail flag for attachment in unix

Dennis Malen dmalen at malen.com
Thu Oct 1 08:23:36 PDT 2009


Ken,

I missed trying Bill's suggestion and the following did work:

(uuencode emccx.xls emccx.xls ; cat tryftp) | mail -s "test4" 
dmalen at malen.com



It attached emccx.xls and placed the contents of tryftp in the body.



Thanks everyone. That does it for my limited needs.



Thanks!



Dennis Malen
516.479.5912
----- Original Message ----- 
From: "Kenneth Brody" <kenbrody at spamcop.net>
To: "Dennis Malen" <dmalen at malen.com>
Cc: <filepro-list at lists.celestial.com>
Sent: Thursday, October 01, 2009 10:42 AM
Subject: Re: ot: mail flag for attachment in unix


> Dennis Malen wrote:
>> Thanks Scott, Ken, Bill and Mark.
>>
>> It has been confirm that in the Bourne shell there is no way to do it. 
>> That leaves me with LM or something like it.
> [...]
>
> Don't blame the shell.  There is only one stdin.  What did you intend with 
> your syntax:
>
>     uuencode ... | mail ... <tryftp
>
> Now, as Bill pointed out, if you want the output of uuencode, followed by 
> the contents of the tryftp file, to be read as stdin, then use:
>
>     ( uuencode filename filename ; cat tryftp ) | mail ...
>
> But, "use both at the same time" has no meaning.
>
> Or, as has been suggested, use a program that understands the concept of 
> "attachments" if you want to actually use attachments.
>
> -- 
> Kenneth Brody 



More information about the Filepro-list mailing list