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
Mailx Command shahnazurs UNIX for Advanced & Expert Users 3 11-16-2007 01:31 AM
How to configure mailx command?? kumarsaravana_s Shell Programming and Scripting 9 03-29-2007 09:18 AM
mailx command with headers rgremill SUN Solaris 5 02-09-2006 05:23 PM
mailx command (Sun Solaris 8) cczerwin Shell Programming and Scripting 2 07-16-2004 05:08 AM
trouble using mailx command ldrojasm Shell Programming and Scripting 2 04-03-2002 06:52 AM

Closed Thread
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
  #1 (permalink)  
Old 04-26-2005
sveera sveera is offline
Registered User
  
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
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
  #2 (permalink)  
Old 04-26-2005
SSteve's Avatar
SSteve SSteve is offline
Registered User
  
 

Join Date: Apr 2005
Location: Sierra Foothills, California
Posts: 15
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.)
  #3 (permalink)  
Old 04-26-2005
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 699
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

  #4 (permalink)  
Old 04-27-2005
sveera sveera is offline
Registered User
  
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
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
  #5 (permalink)  
Old 04-27-2005
sveera sveera is offline
Registered User
  
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
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
  #6 (permalink)  
Old 04-28-2005
SSteve's Avatar
SSteve SSteve is offline
Registered User
  
 

Join Date: Apr 2005
Location: Sierra Foothills, California
Posts: 15
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.
Closed Thread

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 09:49 PM.


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