Created
May 3, 2010 09:20
-
-
Save rkachowski/387913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
#a script to toggle netbook launcher in UNR | |
#check processes to see if netbook-launcher is running | |
l = `ps -A | grep netbook-launch` | |
#get the proces id | |
p_id = l.strip.split(" ").first | |
#kill the process if it exists, else start one | |
p_id ? `kill -9 #{p_id} > /dev/null &` : `netbook-launcher > /dev/null &` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment