run scripts from phone home screen


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 [email protected] "/mnt/user/data/scripts/dockerrestart.sh;"

 

Sent from my POCOPHONE F1 using Tapatalk

 

 

 

 

 

 

Link to comment
  • 2 weeks later...

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.