Re: environment inheritance..
From: Joe Smith (joe_at_inwap.com)
Date: 03/08/05
- Next message: jliang888_at_yahoo.com: "help on LWP::Parallel"
- Previous message: ktom: "environment inheritance.."
- In reply to: ktom: "environment inheritance.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 08 Mar 2005 02:03:23 -0800
ktom wrote:
> when executing a 'system( some_other program );' from within a perl
> script the environment it inherits, specifically the path, is unexpected.
Unless you've explicitly done something with %ENV, programs invoked
by system() have the same environment as when the perl script was
started from the command line.
If your perl script is being run some other way, such as by cron
or apache, it won't have the same environment as when run from the
command line. In such case, it is up to the author of the script to
make sure that $ENV{PATH} is correct.
Have you ever entered "perldoc -q environment" at the command line?
Any further questions should be posted to comp.lang.perl.misc
instead of here.
-Joe
- Next message: jliang888_at_yahoo.com: "help on LWP::Parallel"
- Previous message: ktom: "environment inheritance.."
- In reply to: ktom: "environment inheritance.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|