psimonovsk has asked for the wisdom of the Perl Monks concerning the following question:
prints - 13 Of cause - if I run from command line /bin/ls - it works... More interesting! If I run same script as root user - it works properly! But, only if I run it as root... If I run it as any other user - it prints "13" If I comment out use Net::Domain; - everything works with any user ... I am totally lost! Do any one have an idea - what can be a reason for such strange mess???use strict; use Net::Domain; my $rc=system("/bin/ls"); print rc, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Domain module works only as root
by ikegami (Patriarch) on Jan 07, 2010 at 21:44 UTC | |
by psimonovsk (Novice) on Jan 09, 2010 at 16:15 UTC | |
by ikegami (Patriarch) on Jan 09, 2010 at 18:53 UTC | |
|
Re: Net::Domain module works only as root
by thundergnat (Deacon) on Jan 07, 2010 at 21:02 UTC | |
by ikegami (Patriarch) on Jan 09, 2010 at 18:45 UTC |