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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mailx Command shahnazurs UNIX for Advanced & Expert Users 3 11-15-2007 09:31 PM
How to configure mailx command?? kumarsaravana_s Shell Programming and Scripting 9 03-29-2007 05:18 AM
mailx command with headers rgremill SUN Solaris 5 02-09-2006 01:23 PM
mailx command (Sun Solaris 8) cczerwin Shell Programming and Scripting 2 07-16-2004 01:08 AM
trouble using mailx command ldrojasm Shell Programming and Scripting 2 04-03-2002 02:52 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-26-2005
Registered User
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
Stumble this Post!
Red face mailx command

Hi friends,
i have seen the following line in some unix shell script .
can some one explain me what exactly the statement is meant for ?
=========================================================
mailx -s " Master Data Transmission Report for $TODAY at $TIME " < /etc/tr/tmp/$tmplog omni_list
====================================================
thanks in advance
veeras
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-26-2005
SSteve's Avatar
Registered User
 

Join Date: Apr 2005
Location: Sierra Foothills, California
Posts: 15
Stumble this Post!
It sends an email with the subject " Master Data Transmission Report for $TODAY at $TIME " with the contents of the file /etc/tr/tmp/$tmplog omni_list. ($TODAY and $TIME will be replaced with the values of those two environment variables.)
Reply With Quote
  #3 (permalink)  
Old 04-26-2005
Registered User
 

Join Date: Oct 2002
Posts: 670
Stumble this Post!
It sends a mail to whom? There is no recipient specified. It should read:

Code:
 mailx -s " Master Data Transmission Report for $TODAY at $TIME " user@host.com < /etc/tr/tmp/$tmplog omni_list
Reply With Quote
  #4 (permalink)  
Old 04-27-2005
Registered User
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
Stumble this Post!
mailx

Thank you Dangral and Steve.
i need to check with the person who wrote this script for finding out about the destination person who is receiving this mail.
thanks alot friends.
bye
veera
Reply With Quote
  #5 (permalink)  
Old 04-27-2005
Registered User
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
Stumble this Post!
Talking mailx

Hi friends ,
omni_list if the one which contains the mailing address of the group who has to receive the mail.
thank you
veera
Reply With Quote
  #6 (permalink)  
Old 04-28-2005
SSteve's Avatar
Registered User
 

Join Date: Apr 2005
Location: Sierra Foothills, California
Posts: 15
Stumble this Post!
Quote:
Originally Posted by sveera
omni_list is the one which contains the mailing address of the group who has to receive the mail.
Oh, of course. I missed the space after the file name. Good thing I don't make my living as a parser.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0