# telnet

Runs a telnet session with an "expect shell" like behaviour.

## &inp;

### telnet input parameters

parameter | type | required | description
--- | --- | --- | ---
host | HostConnection | Yes | Host to connect to (see: tns:HostConnection)
prompt | String | No | The prompt string to expect after login. This is used to recognize when the session is open.
command | String | No | The command to execute.
expect | String | No | The prompt to expect after the command has been executed successfully.
&param-timeout;

## &outp;

## Sample Request:

    	 <ws:telnet>
             <host>
                <hostname>localhost</hostname>
                <port>23</port>
                <user>brosenberger</user>
                <password></password>
             </host>
             <prompt>C:\Users\brosenberger&gt;</prompt>
             <command>dir c:\temp</command>
             <expect>enberger&gt;</expect>
             <timeout>60000</timeout>
          </ws:telnet>