ot: mail flag for attachment in unix
Kenneth Brody
kenbrody at spamcop.net
Thu Oct 1 07:42:00 PDT 2009
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