Skip to content

Instantly share code, notes, and snippets.

@streamer45
Created December 27, 2012 18:50
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 streamer45/4390833 to your computer and use it in GitHub Desktop.
Save streamer45/4390833 to your computer and use it in GitHub Desktop.
from time import sleep
import shlex
import subprocess
KRAD = "krad_radio"
class Kradradio:
def __init__(self, sysname):
self.sysname = sysname
def cmd(self, cmd):
fullcmd = KRAD+" "+self.sysname+" "+cmd
print(fullcmd)
subprocess.call(shlex.split(fullcmd))
sleep(0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment