Hi,
New to Unix and trying to do something -
I am trying to zip bunch of file and email -
/sbin/sh
If i use mail then I can not specify subject -
uuencode file.zip file.zip | mail -s "testfile"
mailadd@group.com
Error is - mail: illegal option -- s
If i use mailx then I can specify subject but it truncates null char at the end of line which i dont want. and data is in message body and not as an attachment.
uuencode file.zip file.zip | mailx -s "My Report"
mailadd@group.com
mailx: deleted 16 NULL characters in mail file
I am confused with lot of ways of mail in unix and looking exact commands for /sbin/sh
Help!
Thanks