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?

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this