![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MailX | rajani_p | UNIX and Linux Applications | 0 | 10-23-2007 12:14 AM |
| Solaris 9 mailx problems | csaunders | SUN Solaris | 5 | 05-18-2006 02:03 PM |
| mailx error message : mailx: NUL changed to @ | BG_JrAdmin | UNIX for Dummies Questions & Answers | 2 | 12-01-2005 10:27 AM |
| how to send mails to users on exchange server from sendmail/solaris(mailx) | ganeshh | SUN Solaris | 5 | 11-18-2005 12:51 AM |
| mailx command (Sun Solaris 8) | cczerwin | Shell Programming and Scripting | 2 | 07-16-2004 04:08 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 03:49 PM.. |
|
||||
|
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 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|