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() > > > 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 > path for gnuplot's "fit" regression function, It looks for > the environment > variable FIT_LOG. > > How can I set an environment variable in the script that will > be inherited > by the system() process? > > Thanks, > -Dan > > --- > "Old programmers never die... Unless of course they refuse to > accept a few > extra CPU cycles over months of efficiency tuning... [Have > times changed or > WHAT!]" > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]