コード例 #1
0
def get_description(arg_string):
    description = system.get_output_of("dig +short txt " + arg_string + ".wp.dg.cx" )
    #TODO clean this info up first
    return description
コード例 #2
0
def get():
    cmd = "amixer get Master | grep 'Mono:' | sed -e 's/^[^\[]*//' -e 's/^.//' -e 's/%.*$//'"
    out = system.get_output_of(cmd)
    vol = int(out)
    return vol