Is there a way to invoke a shell script on my Mac from a react native app I'm writing? Like, maybe through Handoff, or Bonjour, or something?
-
-
Replying to @mykola
Write a LaunchDaemon plist that invokes it on TCP connsction. Don’t see why it wouldn’t work, seems like the simplest possible solution.
1 reply 0 retweets 0 likes -
Do you have any links to docs or examples for this approach? This sounds perfect.
1 reply 0 retweets 0 likes
Replying to @stevenhepting @mykola
I'm not sure it's perfect; it's a hack, but: https://stackoverflow.com/questions/17457964/os-x-launchd-over-socket … and https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html …
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.