in reply to Re: Re: qx vs WScript: Why didn't qx work in my ActiveState's PerlScript?
in thread qx vs WScript: Why didn't qx work in my ActiveState's PerlScript?

Sorry for the confusion :p... I meant to use "ls" merely as a generic example. (Maybe I should use "foo"?)... Besides, I do have ls.exe on my Windows (Windows-port of Unix tools). Thanks.
  • Comment on Re: Re: Re: qx vs WScript: Why didn't qx work in my ActiveState's PerlScript?

Replies are listed 'Best First'.
Re: Re: Re: Re: qx vs WScript: Why didn't qx work in my ActiveState's PerlScript?
by helgi (Hermit) on Sep 12, 2002 at 09:51 UTC
    Yes, but if you are running this from a browser, you are not running as yourself, but as httpd or whatever your web server calls itself on your platform. This user has an empty path and to use a program such as ls.exe, you must give it the full path to it. It may also not have the rights to execute the program

    Regards,

    Helgi Briem