perlisfun has asked for the wisdom of the Perl Monks concerning the following question:
1. $rv = `export JAVA_HOME=/path/here`;
2. system(". setEnv.sh");
Syntax is right. But when script is done, environment variables did not set. I think both methods above fork another shell to finish the job. Actually i want it to run on current shell. Is that possible? thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: UNIX environment setup via perl
by mojotoad (Monsignor) on May 07, 2004 at 15:07 UTC | |
|
Re: UNIX environment setup via perl
by haoess (Curate) on May 07, 2004 at 14:39 UTC | |
by perlisfun (Sexton) on May 07, 2004 at 14:49 UTC | |
by eserte (Deacon) on May 07, 2004 at 15:01 UTC | |
by haoess (Curate) on May 07, 2004 at 15:05 UTC | |
|
Re: UNIX environment setup via perl
by Fletch (Bishop) on May 07, 2004 at 15:18 UTC | |
|
Re: UNIX environment setup via perl
by herveus (Prior) on May 07, 2004 at 15:18 UTC | |
by perlisfun (Sexton) on May 07, 2004 at 22:48 UTC | |
by TomDLux (Vicar) on May 08, 2004 at 04:39 UTC | |
|
Re: UNIX environment setup via perl
by eserte (Deacon) on May 07, 2004 at 15:45 UTC | |
by haoess (Curate) on May 07, 2004 at 16:22 UTC | |
by eserte (Deacon) on May 07, 2004 at 17:24 UTC |