in reply to Re^2: [OT] sudo does not execute .profile
in thread Perl sudo does not execute .profile
I think this is a Unix / AIX problem, not a Perl problem. Perhaps (a) missing export command(s) in .profile? Run env (or see below) instead of the second script and look at the output. Post the .profile file, if it does not contain sensitive data. Also post the relevant parts of the perl scripts.
Simple env replacement:
#!/usr/bin/perl -w use strict; use Data::Dumper; print Data::Dumper->new([\%ENV],['*ENV'])->Useqq(1)->Sortkeys(1)->Dump +();
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: [OT] sudo does not execute .profile
by ikegami (Patriarch) on Nov 15, 2010 at 19:42 UTC |