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
Print to ps2pdf print queue Sean_69 SUN Solaris 2 10-22-2007 11:00 AM
Print to a ps2pdf print queue. Sean_69 UNIX for Dummies Questions & Answers 1 10-22-2007 10:58 AM
Print Problem in UNIX. Need to know the option to specify the print paper size ukarthik HP-UX 1 06-07-2007 09:35 AM
Send email where # is in the email address - Using Unix jingi1234 UNIX for Dummies Questions & Answers 1 05-23-2005 11:23 AM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 09:43 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-19-2008
Registered User
 

Join Date: Apr 2008
Posts: 77
Print log to an email

Hi,

I have wrote a script and i want to be able to output my variable MSG_DEST (which is a log) to an email. so basically log contains:

hello John

when i email recipient it says

to xxxxxx
from xxxxxx
subject xxxxxx

hello John

What do I need to put in my script to get the log contents on the email?

any help would be appreciated.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-19-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 1,770
I don't quite understand your ques. Is this what you're looking for?
bin/cat $MSG_DEST | /bin/mailx -s "Some log" abc@def.com
Reply With Quote
  #3 (permalink)  
Old 06-23-2008
Registered User
 

Join Date: Apr 2008
Posts: 77
Fixed it

I fixed it, thanks any way Incredible.

I did:

mailx -r $MAIL_FROM -s "xxxxxx" $EMAIL < $MSG_DEST
Reply With Quote
  #4 (permalink)  
Old 06-23-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,230
also moved cause no solaris problem. please watch out for the right forum to post!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 05:40 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66