Jump to content
Sign in to follow this  
technomancer__

run scripts from phone home screen

5 posts in this topic Last Reply

Recommended Posts

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 root@192.168.0.100 "/mnt/user/data/scripts/dockerrestart.sh;"

 

Sent from my POCOPHONE F1 using Tapatalk

 

 

 

 

 

 

Share this post


Link to post

Maybe pretty obvious question, but just in case. Is your phone on the same LAN?

  • Like 1

Share this post


Link to post
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 up

Sent from my POCOPHONE F1 using Tapatalk

Share this post


Link to post

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

script.thumb.PNG.40d76125dbb52a573fae0c69e6863e2a.PNG

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this