Creating a script

Top  Previous  Next

A script is a set of tasks that are to be performed in sequence. A TelnetScript instance represents the script for one or more tasks to be executed on the telnet server. To create a script simply create a new TelnetScript instance passing a Telnet instance as its argument.

 

Example

 

// create new Telnet instance

Telnet telnet = new Telnet("10.0.0.1");

 

// create new TelnetScript instance and bind to Telnet instance

TelnetScript script = new TelnetScript(telnet);





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC