def rc(command):
    process = subprocess.Popen(command.split(), stdout=subprocess.PIPE)
    while True:
        output = process.stdout.readline()
        if ((output == '') and (process.poll() is not None)):
            break
        if output:
            print((output.strip() + '\n'))
    return process.poll()
def rc(command):
    process = subprocess.Popen(command.split(), stdout=subprocess.PIPE)
    while True:
        output = process.stdout.readline()
        if ((output == ) and (process.poll() is not None)):
            break
        if output:
            print((output.strip() + '\n'))
    return process.poll()