I have a perl script that I want to run from a web server. It runs just fine
from a command prompt, but I need to be able to call it from a web page. 
For example, I need to click on a link and it map a drive and stop an NT
service.  If the perl script is called from a web browser running on the
machine that the web server is on, everything works fine.  But if it is
called from a different machine it does not work... Any ideas?
***********************
Here is a sample of what I am doing.
require "cgi-lib.pl";
print "HTTP/1.0 200 OK\n" if $ENV{"PERLXS"}=~/PerlIS/i;
print "Content type: text/html\n\n";
print "<body>";
print "<p><img border='0' src='../sailogo.gif' width='600'
height='83'></p>";
print "<p align='left'><font face='Book Antiqua' size='6'>Test Site for TSM
Service restarting</font></p>";
print "<p>&nbsp;</p>";

use Win32::NetResource;
$User = "administrator";
$Password = "blahblah";

        %NetResource = (
        LocalName => "X:",
        RemoteName => "\\\\1.2.3.4\\c\$"
        );

Win32::NetResource::AddConnection ( \%NetResource, $Password,$User);
print "Done";
*********************************
The code runs fine, it just doesn't map the drive.





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/


_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to