technomancer__ Posted January 12, 2019 Share Posted January 12, 2019 my goal is to press a shortcut on my phone screen and run a script on my unraid server.i found this app in the playstore called turmax with a plugin called widget that allows you to run scripts from your phone home screen. The only thing that i have left to do is write the script that will ssh to my server and run the command to execute the script on my server.In order to ssh i installed sshpass on turmux and i wrote this script but i doesnt work #!/data/data/com.turmux/files/usr/bin/bashsshpass -p 'my password' ssh -o StrictHostKeyChecking=no [email protected] "/mnt/user/data/scripts/dockerrestart.sh;" Sent from my POCOPHONE F1 using Tapatalk Quote Link to comment
trurl Posted January 13, 2019 Share Posted January 13, 2019 Maybe pretty obvious question, but just in case. Is your phone on the same LAN? 1 Quote Link to comment
technomancer__ Posted January 13, 2019 Author Share Posted January 13, 2019 Maybe pretty obvious question, but just in case. Is your phone on the same LAN?Yea and when it isn't I have open vpn set upSent from my POCOPHONE F1 using Tapatalk Quote Link to comment
kizer Posted January 14, 2019 Share Posted January 14, 2019 I’d talk to the Dev who made the ControlR Plugin and app. Sorry I’m on my phone and on the move otherwise I’d point you a bit better. https://forums.unraid.net/topic/47914-controlr-androidios-app-for-unraid/ 1 Quote Link to comment
technomancer__ Posted January 23, 2019 Author Share Posted January 23, 2019 i managed to get sshpass working only if i write the command in terminal i put it in a script like this and it doesn't work Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.