Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monks,
I have a script which runs on several computers. On one computer today I find out that the script to execute a program, complaining that the program is not in PATH. File::Which::which("progname") returns empty and File::Spec->path gives ("/bin", "/usr/bin"), as well as $ENV{PATH} being set to "/bin:/usr/bin". This script is not run setuid.
How do I find out who modifies $ENV{PATH}? I remember a module in CPAN which monitors %ENV for modification, but couldn't find which module. I also tried to grep for "/usr/bin" in the source code; that didn't return any clues.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Who modifies $ENV{PATH}?
by tobyink (Canon) on Dec 06, 2012 at 10:35 UTC | |
by Anonymous Monk on Dec 07, 2012 at 06:52 UTC | |
|
Re: Who modifies $ENV{PATH}?
by jethro (Monsignor) on Dec 06, 2012 at 10:40 UTC | |
|
Re: Who modifies $ENV{PATH}?
by kcott (Archbishop) on Dec 06, 2012 at 11:50 UTC | |
|
Re: Who modifies $ENV{PATH}?
by Anonymous Monk on Dec 06, 2012 at 13:52 UTC | |
|
Re: Who modifies $ENV{PATH}?
by Anonymous Monk on Dec 06, 2012 at 10:12 UTC |