in reply to win32::ole runs under cmd line but not cgi

Whenever someone says "it works fine from the command line but it doesn't work as CGI..." it makes me think of users' permissions. The user executing CGI scripts is oftentimes a special web user with limited access. When you run the same script from the command line, you're logged in as a user with rights and permissions that are usually quite different from the web user.

It may or may not help, but it's something to think about.

Cheers,

Brent

-- Yeah, I'm a Delt.
  • Comment on Re: win32::ole runs under cmd line but not cgi

Replies are listed 'Best First'.
Re^2: win32::ole runs under cmd line but not cgi
by dparadies (Initiate) on Jul 24, 2005 at 17:29 UTC
    Thank you. It looks like you nailed the problem. Now i just have to figure out how to have perl be recognized as having the appropriate permissions.
      Hi
      Let Me know how to solve the issues when I am using the Apache with Windows2003