Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

system("CScript automation.vbs $merchantName $fileName $FP $passWord");
I am using the above system command to call my script, automation.vbs, which automates creating FTP sites on IIS 5.0 It works fine however when i put the automation.vbs script on the server machine that i am trying to create FTP sites on and try using a system call to call it from a .cgi(using perl), it doesn't work. It gives me the error below.
CScript Error: Loading your settings failed. (Access is denied.)

I have Read and Execute permissions, actually i have all permissions because I am using Win32::Internet to log in as the Administrator. I've tried putting the full paths in the system call even though it sits in the same directory as the cgi that my .vbs script sits in. Any ideas?

Replies are listed 'Best First'.
RE: Perl/IIS system calls
by little (Curate) on Oct 11, 2000 at 10:33 UTC
    You might wan't to check, if your *.cgi script has these permissions as well, I mean, if it runs under an user account with these permissions. So make sure, you are the only one, who can invoke that *.cgi script, and set the uid to one with the required permissions.
    Have a nice day
    All decision is left to your taste
    Update :
    Also check, if *.cgi scripts can run as "administrator" on the the server. Due to security reasons this might be not permitted on your server.