original_docstring:  Execute the command remotely
          - if workdir is set: in the specific workdir
          - if defined, env is a list of string keypairs to set env variables.
          - if wait_result is set to True: blocks until it gather
            the results
docstring: Execute the command remotely
  if workdir is set: in the specific workdir
  if defined, env is a list of string keypairs to set env variables.
  if wait_result is set to True: blocks until it gather
  the results
docstring_tokens: Execute the command remotely if workdir is set : in the specific workdir if defined env is a list of string keypairs to set env variables . if wait_result is set to True : blocks until it gather the results
code: def execute_shell_command(self,
                                cmd,
                                workdir=None,
                                env=None,
                                wait_result=False):
          """ Execute the command remotely
          - if workdir is set: in the specific workdir
          - if defined, env is a list of string keypairs to set env variables.
          - if wait_result is set to True: blocks until it gather
            the results"""
  
          call = ""
          if env is not None:
              for key, value in env.items():
                  call += "export " + key + "=" + value + " && "
  
          if workdir:
              call += "export CURRENT_WORKDIR=" + workdir + " && "
              call += "cd " + workdir + " && "
  
          call += cmd
          return self.send_command(call,
                                   wait_result=wait_result)
code_tokens: def execute_shell_command ( self , cmd , workdir = None , env = None , wait_result = False ) : call = "" if env is not None : for key , value in env . items ( ) : call += "export " + key + "=" + value + " && " if workdir : call += "export CURRENT_WORKDIR=" + workdir + " && " call += "cd " + workdir + " && " call += cmd return self . send_command ( call , wait_result = wait_result )
short_docstring: Execute the command remotely
   if workdir is set: in the specific workdir
   if defined, env is a list of string keypairs to set env variables.
short_docstring_tokens: Execute the command remotely if workdir is set : in the specific workdir if defined env is a list of string keypairs to set env variables .
comment: """ Execute the command remotely
          - if workdir is set: in the specific workdir
          - if defined, env is a list of string keypairs to set env variables.
          - if wait_result is set to True: blocks until it gather
            the results"""