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 question dkranes Shell Programming and Scripting 3 10-31-2007 08:24 AM
Question on mailx Felix2511 UNIX for Dummies Questions & Answers 3 05-23-2007 10:38 AM
mailx and uuencode question ssmiths001 Shell Programming and Scripting 1 10-21-2005 02:43 AM
mailx question greenguy5 UNIX for Dummies Questions & Answers 1 10-21-2005 12:07 AM
Mailx question Olivier UNIX for Advanced & Expert Users 3 08-26-2002 08:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-23-2008
Registered User
 

Join Date: Nov 2006
Posts: 187
mailx question

hello

in the middle of my sh script, I am using mailx like this:

mailx -s "Sybase Installation on $i" x@abc.com < /net/share/shared/install.output.$i


"i" stands for the remote server such as SIROE

I am expecting to receive an email with subject "Sybase Installation on SIROE" and attachment the file /net/share/shared/install.output.siroe

The email I am receiving as the subject: Sybase Installation on
$i is not affected inside " "

any idea please?
thx
Reply With Quote
Forum Sponsor
  #2  
Old 01-24-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,200
I can't see where i is declared, but you can try : ${i} and see if this solves the problem.
Reply With Quote
  #3  
Old 01-24-2008
Registered User
 

Join Date: Nov 2007
Location: Belgium & France
Posts: 70
Try

mailx -s "Sybase Installation on "$i x@abc.com < /net/share/shared/install.output.$i
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
mailx, mailx attachment

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:27 AM.


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

Content Relevant URLs by vBSEO 3.2.0