Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: using TaskScheduler to reboot Win32 machine

by Rabbi Bob (Scribe)
on Jul 12, 2007 at 11:10 UTC ( #626197=note: print w/ replies, xml ) Need Help??


in reply to Re^2: using TaskScheduler to reboot Win32 machine
in thread using TaskScheduler to reboot Win32 machine

Have you checked for the last system message after the call from within Perl? That might tell if you if it's running at all and help determine the issue

print "SysMsg - " . Win32::FormatMessage(Win32::GetLastError());

Also, anything in the event log after you attempt the run?

On the Windows side: I assume user/pass is a static account that will never change? Otherwise if you have a rotating password scheme for security in place, this will haunt you later in a bad way!


Comment on Re^3: using TaskScheduler to reboot Win32 machine
Re^4: using TaskScheduler to reboot Win32 machine
by magikstik! (Initiate) on Jul 12, 2007 at 11:18 UTC
    backticks - `command`
Re^4: using TaskScheduler to reboot Win32 machine
by ethrbunny (Monk) on Jul 12, 2007 at 12:50 UTC
    Got it working. The problem was a space in the first param to InitiateSystemShutdown. It was trying to find a machine called '<space here>' instead of the local box.
      Great! Congrats

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://626197]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-08-20 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (111 votes), past polls