![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to read email using mailx in shell script or perl | jliharper | Shell Programming and Scripting | 4 | 03-23-2008 06:57 AM |
| Script to delete all mail in mailx | sqloyd | Shell Programming and Scripting | 1 | 09-04-2006 08:01 PM |
| Mailx via script | braindrain | Shell Programming and Scripting | 5 | 06-22-2006 09:28 AM |
| How to use mail,mailx command in Shell Script ? | sollin | Shell Programming and Scripting | 16 | 04-28-2006 07:50 AM |
| unable to do mailx from shell script | xiamin | Shell Programming and Scripting | 3 | 12-24-2002 03:10 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Mailx in shell script (KSH)
Greetings all,
I'm pretty new to the use of mailx, having been using mutt most of the time. I'm interested to know how I can use mailx within a shell script to send out a formatted email with the following criterion: 1. My recipient's address is abcdef1000@gmail.com 2. The message body is stored in a file msgbody.txt 3. The subject header is "Welcome new user" 4. 2 files (text-based files, already created with nano) named first.log and second.log will have to be sent out as attachments along with this mail. 5. There is a need to CC the email to myself. May I know how this can be achieved? Am having quite a lot of trouble figuring out how to place this within a KSH script. Thanks in advance. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|