On Mon May 08 2000 at 10:44, "Mark A. Swope" wrote:
> 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
mailx `cat /tmp/msg.txt` [EMAIL PROTECTED] < /dev/null
or, which bash (and much better):
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?
Cheers
Tony