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, em
> >
> > 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
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
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 \"${SUBJ
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"
WARNCM
5 matches
Mail list logo