![]() |
|
|
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 |
| Mail issue - Subject title missing | kiem | SUN Solaris | 2 | 10-10-2007 03:56 PM |
| what are the codes used for setting the subject in the mail command? | Jason3107 | UNIX for Dummies Questions & Answers | 2 | 07-12-2007 10:15 AM |
| sort mail based on subject in unix. | sriram.s | Shell Programming and Scripting | 2 | 02-02-2007 07:38 AM |
| How to set Subject in 'mail' ? | hkapil | UNIX for Dummies Questions & Answers | 2 | 10-14-2005 05:36 PM |
| Send a mail with a subject and an attachement | josecollantes | UNIX for Dummies Questions & Answers | 1 | 08-28-2001 12:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Mail subject output of script
I am new to this site so please bear with my ignorances.
I have started playing with mail on AIX 4.3.3 with many successes (thanks to this site) but am now stuck. I want to send a mail with the subject as the result of a script, eg. I want the mail body to read as the output from 'df -k /......' - this is sheer laziness but it would save my collegeues reading the mail when the results are in the subject header - hope this makes sense. I have tried calling variables in the mail -s ".....${}" without success. Regards Kiano |
|
|||||
|
I know what you said, and I think you can do it using this.
Simply assign the output of your script to the variable SUBJECT / $SUBJECT in the above example and away you go.... I only put all the rest in there as it was the way I used it and shows most of the settings, which could be helpful fo rother solutions as well.... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|