Hi Simon,

Yes, IIS 4.0. I take it you mean that you had trouble running the script,
not with IIS in general. How, specifically, did you tool with the permissions?

Thank you for your help.

Tim



At 09:27 AM 1/17/01 -0500, you wrote:
>You're using IIS right? check the permissions of the default IUSR that runs
>on the webserver.  I had this problem and  tooled with the permission in NT
>and IIS and got the basic script working.
>-S
>
>----- Original Message -----
>From: "The Musar Corporation" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, January 16, 2001 10:03 PM
>Subject: RE: a reboot script?
>
>
>> Hello World,
>>
>> I'm still having trouble with the code which actually does the rebooting.
>> I'm getting an "Undefined subroutine &Win32::InitiateSystemShutdown
>> called..." error.
>>
>> Maybe someone knows my mistake. The script in its current state appears
>below:
>>
>> # http_echo_test.pl
>>
>> use LWP::Simple;
>>
>> $url = "http://www.musar.com/echo.html";
>> $content = get($url);
>>
>> if ($content) {
>> print STDOUT "Content-type: text/html\n\n";
>> print STDOUT "<HTML>
>> <META http-equiv=refresh
>> content=\"20;url=http://www.musar.com/echo_trigger.html\">
>> <BODY>echo delay...\n";
>> print STDOUT "</BODY></HTML>\n";
>> }
>>
>> elsif (!$content) {
>> $notice = "http_echo_test.txt";
>> `Blat $notice -s "Echo Notice" -f info\@musar.com -t info\@musar.com`;
>> $machine = "Musar";
>> $message = "Shutting Down";
>> $timeout = 10;
>> $forceclose = 1;
>> $reboot = 1;
>> use Win32;
>> Win32::InitiateSystemShutdown($machine, $message, $timeout, $forceclose,
>> $reboot);
>> }
>>
>>
>> Thank you,
>>
>> Tim
>>
>> _______________________________________________
>> Perl-Win32-Web mailing list
>> [EMAIL PROTECTED]
>> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
>>
>
>

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

Reply via email to