original_docstring: r"""
          Description of argument(s):
  
          hostname        Name/IP of the remote (targeting) host
          username        User on the remote host with access to FFCD files
          password        Password for user on remote host
          command         Command to run on remote host
          timeout         Time, in second, to wait for command completion
      
docstring: 
  
  hostname        Name/IP of the remote (targeting) host
  username        User on the remote host with access to FFCD files
  password        Password for user on remote host
  command         Command to run on remote host
  timeout         Time, in second, to wait for command completion
docstring_tokens: hostname Name / IP of the remote ( targeting ) host username User on the remote host with access to FFCD files password Password for user on remote host command Command to run on remote host timeout Time in second to wait for command completion
code: def telnet_execute_cmd(hostname,
                         username,
                         password,
                         command,
                         timeout=60):
      r"""
          Description of argument(s):
  
          hostname        Name/IP of the remote (targeting) host
          username        User on the remote host with access to FFCD files
          password        Password for user on remote host
          command         Command to run on remote host
          timeout         Time, in second, to wait for command completion
      """
      telnet_remoteclient = TelnetRemoteclient(hostname,
                                               username,
                                               password)
      result = ''
      if telnet_remoteclient.tn_remoteclient_login():
          # result: stdout from remote host
          result = \
              telnet_remoteclient.execute_command(command, timeout)
  
      # Close telnet session
      if telnet_remoteclient:
          telnet_remoteclient.tn_remoteclient_disconnect()
  
      return result
code_tokens: def telnet_execute_cmd ( hostname , username , password , command , timeout = 60 ) : telnet_remoteclient = TelnetRemoteclient ( hostname , username , password ) result = '' if telnet_remoteclient . tn_remoteclient_login ( ) : result = telnet_remoteclient . execute_command ( command , timeout ) if telnet_remoteclient : telnet_remoteclient . tn_remoteclient_disconnect ( ) return result
short_docstring: r"""
  Description of argument(s):
short_docstring_tokens: r " " " Description of argument ( s ) :
comment: r"""
          Description of argument(s):
  
          hostname        Name/IP of the remote (targeting) host
          username        User on the remote host with access to FFCD files
          password        Password for user on remote host
          command         Command to run on remote host
          timeout         Time, in second, to wait for command completion
      """$SEP$# result: stdout from remote host$SEP$# Close telnet session