05-23-2012, 02:04 AM
(This post was last modified: 05-23-2012, 02:12 AM by willplaice.)
hoping for a linux guy to help here...
i need to bounce my xbmc clients (running custom linux - so limited services)
to reboot them from the cqc server i can run from the cli:
plink root@192.168.1.114 -pw openelec reboot
and I can put that in a button as:
System::ExecApp
P1=c:\\Program Files (x86)\\PuTTY\\plink.exe
P2=root@192.168.1.113 -pw openelec reboot
P3=c:\\Program Files (x86)\\PuTTY
P4=Show
this works the 1st time I execute it, but never again, i guess cqc is holding plink open, as it will just fail after executing the reboot...
do i have to find a cleaner way to send the reboot, or can i make cqc forget about the ExecApp ?
many thanks, Will
*** UPDATE ***
I can see the plink task in task manager, and if i kill it manually the button works again...
so i have added another ExecApp to kill plink
TASKKILL /F /IM plink.exe /T
nasty, but working
i need to bounce my xbmc clients (running custom linux - so limited services)
to reboot them from the cqc server i can run from the cli:
plink root@192.168.1.114 -pw openelec reboot
and I can put that in a button as:
System::ExecApp
P1=c:\\Program Files (x86)\\PuTTY\\plink.exe
P2=root@192.168.1.113 -pw openelec reboot
P3=c:\\Program Files (x86)\\PuTTY
P4=Show
this works the 1st time I execute it, but never again, i guess cqc is holding plink open, as it will just fail after executing the reboot...
do i have to find a cleaner way to send the reboot, or can i make cqc forget about the ExecApp ?
many thanks, Will
*** UPDATE ***
I can see the plink task in task manager, and if i kill it manually the button works again...
so i have added another ExecApp to kill plink
TASKKILL /F /IM plink.exe /T
nasty, but working