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

I can't see where i is declared, but you can try : ${i} and see if this solves the problem.

Try

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