Python Forum
Shutdown from remote trough Android - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Shutdown from remote trough Android (/thread-943.html)



Shutdown from remote trough Android - andrea1980345 - Nov-15-2016

Hi guys, i try to find something on google but with no results.. How can i shutdown my computer trough my Android phone or tablet?


RE: Shutdown from remote trough Android - sparkz_alot - Nov-15-2016

Take the corner of the phone and press it against the 'on/off' button  Big Grin

Seriously though, this relates to Python how?


RE: Shutdown from remote trough Android - andrea1980345 - Nov-15-2016

I think im bad to explain.. Im not good with english sorry! I wanna write a script for shutdown my computer from remote Android. Like this, run this on my android with python installed and shutdown when i start the script.

ipcomputer = 'myip', '128.0.0.0'
androidremotecontrol = '128.0.0.0' 'shutdown'

Is a bad example, but is what i want to do. If you know a module for remote control..


RE: Shutdown from remote trough Android - sparkz_alot - Nov-15-2016

You might take a look at QPython or Kivy . Are you looking to do this over the internet or on an intranet?


RE: Shutdown from remote trough Android - metulburr - Nov-15-2016

you could just ssh into your computer and execute a shutdown command and then make an apk file from the script.


RE: Shutdown from remote trough Android - sparkz_alot - Nov-15-2016

(Nov-15-2016, 08:44 PM)metulburr Wrote: you could just ssh into your computer and execute a shutdown command and then make an apk file from the script.

Who'd a thunk  Tongue . After reading your reply, did a quick Google and first listing was http://www.techrepublic.com/article/easily-make-an-ssh-connection-from-your-android-device/ 
May have to give it a try  Cool


RE: Shutdown from remote trough Android - andrea1980345 - Nov-15-2016

(Nov-15-2016, 08:44 PM)metulburr Wrote: you could just ssh into your computer and execute a shutdown command and then make an apk file from the script.

Can you expain me? Or send me an example? I dont understand.. By the way i dont want a external program, just wanna understand the module to use.. For write a script :)