Mailx

karlp at ourldsfamily.com karlp at ourldsfamily.com
Wed May 17 18:44:55 UTC 2006


On Wed, May 17, 2006 12:32 pm, Han Tin said:
> To all.
> I'd a script used to work on HP-UX.
> Will it work on RHL ES.
>
> #!/usr/bin/sh
> # sndmail
> # usage sndmail <filename> <e-mail>
> #
>
> uuencode $1 $1 | mail -m -s "Test" $2

It looks good other than -m. Do man mail to see what switch to use instead.

I suspected you were coming from Sun, HP/UX or AIX, all of which use mailx as
a commandline email parser.

Karl




More information about the Redhat-install-list mailing list