![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MailX | rajani_p | UNIX and Linux Applications | 0 | 10-22-2007 09:14 PM |
| Solaris 9 mailx problems | csaunders | SUN Solaris | 5 | 05-18-2006 11:03 AM |
| mailx error message : mailx: NUL changed to @ | BG_JrAdmin | UNIX for Dummies Questions & Answers | 2 | 12-01-2005 06:27 AM |
| how to send mails to users on exchange server from sendmail/solaris(mailx) | ganeshh | SUN Solaris | 5 | 11-17-2005 08:51 PM |
| mailx command (Sun Solaris 8) | cczerwin | Shell Programming and Scripting | 2 | 07-16-2004 01:08 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Need Help w/mailx - Sun Solaris
I have this Legato application which generates a file and then it pipes it to mailx.
cat << savelog.txt | mailx -s "Saverpt `date +"%c`" myemail@xxx.com The "savelog.txt does get created and is owned by root and other group, but yet will not email using mailx to myemail@xxx.com. Mailx emails me from "root" instead of the application user and only emails the "Subject Line" and not the text file. Can someone assist why this is happening. When I am logged in as myself (userme) and run the script from the command line I get the email fromt userme@xxx.com and the contents of the file in the email. So what is different. Last edited by gzs553; 10-13-2006 at 12:49 PM. |
| Forum Sponsor | ||
|
|
|
|||
|
I don't know why you're doing a cat << savelog.txt but remove the "<<"'s. Just use
Code:
cat savelog.txt | mailx -s "Saverpt `date +"%c`" myemail@xxx.com Code:
mailx -s "Saverpt `date +"%c`" myemail@xxx.com < savelog.txt Carl |