Quote:
Originally Posted by ghostdog74
it does not work, so give the error messages you encountered.
Also, did you even try to see what usr/bin/ is on the shell command line??
the actual command might be
/usr/bin/cat file.txt | mailx .........or something similar..
When I use the following command at command prompt it is working.
uuencode filename filename | mail "mail_id".
but when I use in the script it is not working and giving the error
SP2-0734: unknown command beginning "/usr/bin/u..." - rest of line ignored.
before this i open sql connection.I have to close this conncetion before using this command.i will check it.
again problem.
when i use
uuencode "filename" | mailx -s "subject" "mail_id".
it is showing subject but it is not attaching the file to the mail
when i use
uuencode "filename" | mail -s "subject" "mail_id".
it is attaching file but subject is not showing in mail.b'se sun solaris 5.9 does not allow mail command to show subject.
how to do it.