The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-01-2007
rockysfr rockysfr is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 24
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0