Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
TheLewisS1

Run command detached from SSH (Linux/SSH/iOS Shortcuts)

Recommended Posts

Posted · Original PosterOP

Hey all,

 

I've got a PiHole, an have set up some iOS Shortcuts to control it over SSH.

 

I've set up a script that disables Blocking, and then runs another script that waits one hour and reenables it.

 

Shortcuts seems to keep running, following the 1hr delay script that i though would run detached. Any ideas on how to run the script without iOS Shortcuts thinking the script is still running?

 

Code snippets and screenhots blow:

Spoiler

 

Disable Script Ran by Shortcuts


pihole disable
curl --data "param1=value1&param2=value2" https://maker.ifttt.com/trigger/pihole_disabled/with/key/b7*********************2o
bash pihole-enable-delay &

 

Delay + Enable script


sleep 3600
pihole enable
curl --data "param1=value1&param2=value2" https://maker.ifttt.com/trigger/pihole_enabled/with/key/b****************p597-Z4lsit2o
exit

 

iOS Shortcut

652722514_signal-2020-01-20-62031pm.png.7842855ef7c8d3cc44600827287e518d.png

 

Thanks!

Link to post
Share on other sites

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


×