Skip to content

Instantly share code, notes, and snippets.

@commonquail
Created August 4, 2015 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save commonquail/cdd81dac3deec72cf6c3 to your computer and use it in GitHub Desktop.
Save commonquail/cdd81dac3deec72cf6c3 to your computer and use it in GitHub Desktop.
Start Spotify and Blockify from the command line if either is not running
#!/bin/bash
set -o errexit
if ! ps -e | grep -q spotify
then
spotify > /dev/null 2>&1 &
fi
if ! ps -e | grep -q blockify-ui
then
python2 /home/mikkel/repos/blockify/blockify/blockifyui.py > /dev/null &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment