HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] [hylafax-devel] Re: quick shell question for notify.sh mod
Not sure I understand the context, but why not use source.
tmpfile=/tmp/xxx.$$
cat >$tmpfile
source $tmpfile
rm -f $tmpfile
HTH
Pascal
On Tue, 2004-03-30 at 17:00, Frank @ Impact wrote:
> Sorry guys.
>
> I think my email program sent this again. It was stuck in there some
> how.
> Actually, here is how the problem solved.
>
> OIFS=$IFS;IFS=$'\012' # set IFS to newline to parse the awk
> output
> for assignvar in $(echo ${qFileVars} )
> do
> eval ${assignvar}
> done
> IFS=$OIFS # reset IFS back
>
> Where all the q file values were echoed into qFileVars.
>
>
> > -----Original Message-----
> > From: Patrice Fournier [mailto:pfournier@xxxxxxxxx]
> > Sent: Tuesday, March 30, 2004 6:29 PM
> > To: Frank @ Impact
> > Cc: hylafax-devel@xxxxxxxxxxx
> > Subject: Re: [hylafax-devel] Re: quick shell question for notify.sh
> mod
> >
> > Quoting "Frank @ Impact" <Frank@xxxxxxxxxxxxxxxxxx>:
> >
> > > I an going to parse out a long list of variables from the qfile that
> > > will come in via a pipe
> > >
> > > > On Fri, 26 Mar 2004 08:34:37 -0500, "Frank @ Impact"
> > > > <Frank@xxxxxxxxxxxxxxxxxx> wrote:
> > > >
> > > > >Can't get the following to work.
> > > > >echo "var1=var1val" | while read LINE; do eval $LINE ; done ;
> > > > >echo $var1
> > > > >
> > > > >$var1 never gets defined in the current shell.
> > > > >
> > > > >What am I missing?
> >
> > vars=$(echo "var1=var1val")
> > eval $vars
> > echo $var1
> >
> > Can be tested for multiple variables and multiple words values with
> this:
> > vars=$(cat<<EOF
> > var1="var1value"
> > var2="var2value as multiple words"
> > var3="var3value"
> > EOF)
> >
> >
> > --
> > Patrice Fournier
>
>
> ____________________ HylaFAX(tm) Developers Mailing List ____________________
> To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
> On UNIX: mail -s unsubscribe hylafax-devel-request@xxxxxxxxxxx < /dev/null
--
Pascal DeMilly
NGSI
Director R&D
Tel: (949) 497-4669
eFax: (949) 497-6608
Pager: (909) 399-7834
mailto:pascal@xxxxxxxxxxxxxx
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*