Skip to content

Instantly share code, notes, and snippets.

@matrixfox
Created February 22, 2016 22:36
Show Gist options
  • Save matrixfox/4c11a62eb1091e4277aa to your computer and use it in GitHub Desktop.
Save matrixfox/4c11a62eb1091e4277aa to your computer and use it in GitHub Desktop.
Slightly Useful Bash Command
#!/bin/sh
service="stop_loss.sh"
if ps -e | grep "$service"; then
echo "running"
else
echo "not running"
/home/pi/coiny/stop_loss.sh
fi
#!/bin/sh
ruby /home/pi/coiny/stop_loss.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment