Qlab to Shutdown Windows Machine

117 views
Skip to first unread message

Rory Maguire

unread,
Dec 9, 2015, 5:39:20 PM12/9/15
to QLab
Hello Ladies and Gents,

Here's an interesting one...

I'm wondering if theres a nice way to shutdown a couple of windows based machines which appear on my audio network via Qlab?

The current senario is as follows, I've got a couple of redundant playback machines which shut themselves down with a cue at the end of my show, and I was hoping for a way to be able to shut down my system computers (Windows based) in a similar fashion to further streamline things.

These are just system computers (RF Monitor, DME control and such.), so nothing performance heavy running on them, so if I need to run a little helper app on them then that's possible, however I'd rather not run anything additional on the show machines.

Any thoughts? Is this possible? Am I crazy to try and save an extra little bit of time here and there?

Thanks!

-Rory Maguire

Johannes Halvorsen

unread,
Dec 9, 2015, 6:08:29 PM12/9/15
to QLab
I think you need to run an ssh server or something similar om the winpc.

Then send a shell script command in a script cue.

Alternative route: Let the pc ping the mac once å minute, and shut down it self if it doesn't get a pong eg three times in å row. I have seen Windows programs that can do this for you, or you could write a batch script and run via scheduled tasks.

Paul Gotch

unread,
Dec 9, 2015, 6:10:00 PM12/9/15
to ql...@googlegroups.com
On 09/12/2015 22:39, Rory Maguire wrote:
> I'm wondering if theres a nice way to shutdown a couple of windows based
> machines which appear on my audio network via Qlab?

There are ways to do this the easiest way is to arrange to execute a

shutdown /t 0 /s

command on the windows box.

Fortunately earlier this year hell froze over and Microsoft committed to
porting OpenSSH to windows, pre-release versions can be found at

https://github.com/PowerShell/Win32-OpenSSH/releases

The ssh client is an integral part of OS X.

In order to get this to work you'd need to use AppleScript to invoke a
ssh command which ran the shutdown command on the Windows box. It would
need to authenticate using a passwordless key to avoid needing a
password embedded in the script.

> Any thoughts? Is this possible? Am I crazy to try and save an extra
> little bit of time here and there?

Not crazy but you might want to find someone local who knows about ssh
to help you set it up and document what you need to do to get this working.

-p
Reply all
Reply to author
Forward
0 new messages