Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: using TaskScheduler to reboot Win32 machine

by magikstik! (Initiate)
on Jul 12, 2007 at 11:20 UTC ( [id://626199]=note: print w/replies, xml ) Need Help??


in reply to using TaskScheduler to reboot Win32 machine

use backticks => ex: $command=qx{ sort `grep -l 'conf' *` }; #don't confuse ` with '
just wondering, since u have perl installed.
why:
q#c:\\perl\\bin\\perl.exe -MWin32 -e "Win32::InitiateSystemShutdown(' ','Rebooting',5,1,1);"#; try:
qx { `perl -MWin32 -e` "Win32::InitiateSystemShutdown(' ','Rebooting',5,1,1);" } ; #cleaner imo yea so...i don't use cygwin, linux ftw.
  • Comment on Re: using TaskScheduler to reboot Win32 machine

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-24 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found