original_docstring: 
      Execute the command in cmd_str and get its exitcode, stdout and stderr.
  
      This function calls subprocess Popen to be able to execute the
      command and  get stdout, stderr, and the exitcode.
  
      Parameters:
        cmd_str (:term: `string)
          Command to be executed
  
        shell (boolean)
          Defines whether shell is to be used to execute the command.  Normally
          the shell should not be required.
  
      Return:
          Tuple of exitcode, out, err where out and err are strings representing
          the stderr and stdout data
      
docstring: Execute the command in cmd_str and get its exitcode, stdout and stderr.
  This function calls subprocess Popen to be able to execute the
  command and  get stdout, stderr, and the exitcode.
  
  cmd_str (:term: `string)
  Command to be executed
  
  shell (boolean)
  Defines whether shell is to be used to execute the command.  Normally
  the shell should not be required.
  
  Tuple of exitcode, out, err where out and err are strings representing
  the stderr and stdout data
docstring_tokens: Execute the command in cmd_str and get its exitcode stdout and stderr . This function calls subprocess Popen to be able to execute the command and get stdout stderr and the exitcode . cmd_str ( : term : ` string ) Command to be executed shell ( boolean ) Defines whether shell is to be used to execute the command . Normally the shell should not be required . Tuple of exitcode out err where out and err are strings representing the stderr and stdout data
code: def execute_cmd(cmd_str, shell=False):
      """
      Execute the command in cmd_str and get its exitcode, stdout and stderr.
  
      This function calls subprocess Popen to be able to execute the
      command and  get stdout, stderr, and the exitcode.
  
      Parameters:
        cmd_str (:term: `string)
          Command to be executed
  
        shell (boolean)
          Defines whether shell is to be used to execute the command.  Normally
          the shell should not be required.
  
      Return:
          Tuple of exitcode, out, err where out and err are strings representing
          the stderr and stdout data
      """
      args = shlex.split(cmd_str)
  
      proc = Popen(args, stdout=PIPE, stderr=PIPE, shell=shell)
      std_out_str, std_err_str = proc.communicate()
      exitcode = proc.returncode
  
      # return tuple of exitcode, stdout, stderr
      return exitcode, std_out_str, std_err_str
code_tokens: def execute_cmd ( cmd_str , shell = False ) : args = shlex . split ( cmd_str ) proc = Popen ( args , stdout = PIPE , stderr = PIPE , shell = shell ) std_out_str , std_err_str = proc . communicate ( ) exitcode = proc . returncode return exitcode , std_out_str , std_err_str
short_docstring: Execute the command in cmd_str and get its exitcode, stdout and stderr.
short_docstring_tokens: Execute the command in cmd_str and get its exitcode stdout and stderr .
comment: """
      Execute the command in cmd_str and get its exitcode, stdout and stderr.
  
      This function calls subprocess Popen to be able to execute the
      command and  get stdout, stderr, and the exitcode.
  
      Parameters:
        cmd_str (:term: `string)
          Command to be executed
  
        shell (boolean)
          Defines whether shell is to be used to execute the command.  Normally
          the shell should not be required.
  
      Return:
          Tuple of exitcode, out, err where out and err are strings representing
          the stderr and stdout data
      """$SEP$# return tuple of exitcode, stdout, stderr