dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X
http://www.controlplaneapp.com
BSD 3-Clause "New" or "Revised" License
1.75k stars 180 forks source link

ability to re-execute on schedule o timer #472

Open ssbarnea opened 7 years ago

ssbarnea commented 7 years ago

I do have a shell script that is refreshing the kerberos tokens and works well as I triggered its execution to the network change detection.

Now, after having a really long uptime on the VPN, I realised that there is no way to refresh the token using ControlPlane if the network is not changes.

The token is valid for 8 hours so I need to be able to re-run the same script even if the network did not change. How can I do this?

dustinrue commented 7 years ago

Unfortunately ControlPlane doesn't have a timer evidence source but you can create a few time of day entries that will fire off your script. IMO the best way to do this is to enable multiple active contexts so the context that fires off your script can act independently of the others. You can still create rules that run the script based on if you are connected to the VPN AND the it's time to renew the token.

ssbarnea commented 7 years ago

@dustinrue I am still hoping to find a way to address this limitation because I don't want to hide the scheduler logic somewhere else. Now my VPN is persistent but not my Kerberos ticket which expires every 8h hours, so the only way to assure that this is updated is to schedule its refresh.