in reply to Script works when run with sudo, but not when run directly as root...?

That's the only error message you get?

No complaint about not locating a module?

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re: Script works when run with sudo, but not when run directly as root...?

Replies are listed 'Best First'.
Re^2: Script works when run with sudo, but not when run directly as root...?
by bmalnad (Initiate) on May 07, 2014 at 19:00 UTC
    Correct. I don't get any other error messages.
      My thought:

      Check the environment variables of your account and of root created by the login shell.

      Cheers Rolf

      ( addicted to the Perl Programming Language)