def sysprint(command):
 print_debug(('command: %s' % command))
 output = subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT)
 for line in output.splitlines():
  if line.endswith('command not found'):
   raise NotFound(output)
  elif (line == 'Warning: Using a password on the command line interface can be insecure.'):
   pass
  else:
   print line

def sysprint ( command ) : print_debug ( ( 'command: %s' % command ) ) output = subprocess . check_output ( command , shell = True , stderr = subprocess . STDOUT ) for line in output . splitlines ( ) : if line . endswith ( 'command not found' ) : raise NotFound ( output ) elif ( line == 'Warning: Using a password on the command line interface can be insecure.' ) : pass else : print line
helper to print all system commands in debug mode .