Mark,
Try just using the backquote character (`) as in
mailx `cat /tmp/msg.txt`
Optionally you could try
mailx $(cat /tmp/msg.txt)
Anthony
"Mark A. Swope" <[EMAIL PROTECTED]> on 05/08/2000 11:44:00 AM
To: [EMAIL PROTECTED]
cc: (bcc: Anthony Simon/THP)
Subject: how to execute command w/in another cmd line?
I think that this should be simple, but I'm having some trouble with it...
I want to execute *something* like this:
mailx "'cat /tmp/msg.txt'" [EMAIL PROTECTED] < /dev/null
This command will be executed as an "additional" action from
w/in HP Openview after Openview dumps the appropriate text
into /tmp/msg.txt.
When I tried the above command (from the command line),
I get cat /tmp/msg.txt instead of the contents of msg.txt.
What's the correct syntax?
mas
----------------------------------------------------------------------------
---------
MilliHelen - n. The amount of Beauty required to launch 1 ship.