def call_tadm(args):
 if isinstance(args, compat.string_types):
  raise TypeError(u'args should be a list of strings')
 if (_tadm_bin is None):
  config_tadm()
 cmd = ([_tadm_bin] + args)
 p = subprocess.Popen(cmd, stdout=sys.stdout)
 (stdout, stderr) = p.communicate()
 if (p.returncode != 0):
  print()
  print(stderr)
  raise OSError(u'tadm command failed!')

def call_tadm ( args ) : if isinstance ( args , compat . string_types ) : raise TypeError ( u'args should be a list of strings' ) if ( _tadm_bin is None ) : config_tadm ( ) cmd = ( [ _tadm_bin ] + args ) p = subprocess . Popen ( cmd , stdout = sys . stdout ) ( stdout , stderr ) = p . communicate ( ) if ( p . returncode != 0 ) : print ( ) print ( stderr ) raise OSError ( u'tadm command failed!' )
call the tadm binary with the given arguments .