Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save PaulHibbertMasterOfTheUniverse/a2a9ee480304a4b8b8bac2c6e5b6696d to your computer and use it in GitHub Desktop.

Select an option

Save PaulHibbertMasterOfTheUniverse/a2a9ee480304a4b8b8bac2c6e5b6696d to your computer and use it in GitHub Desktop.
Script wrapper for Mac to automatically start Paul's HTTP server
cat << 'EOF' > ~/HomeAssistantAppLauncher/start_app_launcher.sh
#!/bin/bash
# Run the Python script in the background, redirecting output to log files
/usr/bin/python3 ~/HomeAssistantAppLauncher/mac_app_launcher.py > ~/HomeAssistantAppLauncher/app_launcher_stdout.log 2> ~/HomeAssistantAppLauncher/app_launcher_stderr.log &
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment