Yup... That worked just great!
Thanks Jenda!
-Dan
-Original Message-
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:33 AM
To: Perl List
Subject: Re: Setting environment variable for process spawned with
system()
From: "Dan Fish" <[EM
From: "Dan Fish" <[EMAIL PROTECTED]>
> Okay... maybe this is just so simple that I can't see the forest
> through the trees, but I've never had a need to do it before and so
> that inherently makes it difficult :-)
>
> I've got a script that runs gnuplot via system(). In order to use a
> custom
kinda like this?
system(qq/export FIT_LOG="check toilet"; gnuplot -some options/);
> -Original Message-
> From: Dan Fish [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 1:27 PM
> To: Perl List
> Subject: Setting environment variable for process spawned
> with system()
>
>
I'm not sure about in Perl, but you can usually do it on the command line
(depending on shell).
For example, if you use the bash shell, you can say in
your perl script
system( "FIT_LOG=value gnuplot args" );
Tanton
- Original Message -
From: "Dan Fish" <[EMAIL PROTECTED]>
To: "Perl List