I'm using WOL (wake on lan) to wake up my server where are my multimedia files.
It works great.
It's possible to send some commands to shutting down server at same time i shutdown my Android box?
I'm using WOL (wake on lan) to wake up my server where are my multimedia files.
It works great.
It's possible to send some commands to shutting down server at same time i shutdown my Android box?
I know that.
What i want to know it's witch command.
For exemple, power off 192.168.1.120
Can you help me?
Thanks
What OS is the server? and what console (SSH, telnet, etc.)?
The command is executed from tv box (libreelec build) to remote server (windows7)
SSH maybe?
shut-down-your-windows-pc-remotely-from-linux
^ That might work. We have the samba stuff although we don't compile with all possible options enabled which restricts some functionality. No harm in trying though.
In that case you'll need to make a custom build with either different build options or cherry-picking the required binaries from the Samba build folder to somewhere appropriate in the squashfs SYSTEM file image.
Or you find another solution. The only thing that jumps to mind is a webserver on a Windows box that hosts a CGI script to perform the shutdown command, and then you only have to call a URL from the LE side to invoke the script.
Or Google .. i'm sure there's another easier way. Controlling Windows boxen isn't our area of expertise though.
I use webhook as way to turn on/off (hard reset) with a script poe devices (two LE boxes) in my switch.
I just checked and they release arm binaries also. You can set up a webhook server in libreelec that can accept curl payload request and trigger shutdown via script.