def system_output(command, timeout=None, ignore_status=False, retain_output=False, args=(), verbose=True):
 if retain_output:
  out = run(command, timeout=timeout, ignore_status=ignore_status, stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS, verbose=verbose, args=args).stdout
 else:
  out = run(command, timeout=timeout, ignore_status=ignore_status, verbose=verbose, args=args).stdout
 if (out[(-1):] == '\n'):
  out = out[:(-1)]
 return out

def system_output ( command , timeout = None , ignore_status = False , retain_output = False , args = ( ) , verbose = True ) : if retain_output : out = run ( command , timeout = timeout , ignore_status = ignore_status , stdout_tee = TEE_TO_LOGS , stderr_tee = TEE_TO_LOGS , verbose = verbose , args = args ) . stdout else : out = run ( command , timeout = timeout , ignore_status = ignore_status , verbose = verbose , args = args ) . stdout if ( out [ ( - 1 ) : ] == '\n' ) : out = out [ : ( - 1 ) ] return out
run a command and return the stdout output .