rebooting a mac remotely

[email protected] (William Piel) Tue, 28 May 2002 17:26:40 -0400
Newsgroups perl.macperl.webcgi
Message-ID <v04020a00b919a52b5a3d@[128.205.233.26]>
Does anyone have any ideas about rebooting a Mac remotely?

I tried having the mac serve a "restart.cgi" MacPerl script over the web:

$script = <<EOS;
tell application "Finder"
  Restart
end tell
EOS

MacPerl::DoAppleScript($script);


Trouble is, instead of just restarting, MacPerl pops the question "Are you
sure you would like to cancel the script and quit?" Of course, I'd have to
be at the computer in order to click "OK," which defeats the purpose of a
remote restart.

Any ideas how to solve this?

Bill
[email protected]