eval does the trick:
SUBJECT=This is a test mail
WARNMSG=An error occurred
WARNCMD=mail -s \${SUBJECT}\ root
echo echo $WARNMSG | $WARNCMD
eval $WARNMSG | $WARNCMD
oops, sorry, quotes are required here:
eval $WARNMSG | $WARNCMD
well, hum you see what I mean don't you? :)
eval
On 14/03/2007 12:20, Cédric Lucantis wrote:
well, hum you see what I mean don't you? :)
eval echo $WARNMSG | $WARNCMD
Yes thanks ;), I already tried it after your second message and was just
going to reply now, it indeed works fine. Thanks again.
--
Ciao,
Marco.
--
To UNSUBSCRIBE,
Hi,
this is not strictly Debian-related, but I'm doing it on Etch, so... :)
Let's say I'm writing a script like this:
#! /bin/bash
SUBJECT=This is a test mail
WARNMSG=An error occurred
Le mercredi 14 mars 2007 01:04, Marco De Vitis a écrit :
Hi,
this is not strictly Debian-related, but I'm doing it on Etch, so... :)
Let's say I'm writing a script like this:
#! /bin/bash
SUBJECT=This is a test mail
WARNMSG=An error occurred
WARNCMD=mail -s \${SUBJECT}\ root
echo
Le mercredi 14 mars 2007 02:07, Cédric Lucantis a écrit :
Le mercredi 14 mars 2007 01:04, Marco De Vitis a écrit :
Hi,
this is not strictly Debian-related, but I'm doing it on Etch, so... :)
Let's say I'm writing a script like this:
#! /bin/bash
SUBJECT=This is a test mail
5 matches
Mail list logo