Creating a script

Top  Previous  Next

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

 

Example

 

// SSH authentication details

SshParameters params = new SshParameters(hostname,username,password);

 

// create new Ssh instance

Ssh ssh = new Ssh(params);    

 

// create SshScript and bind to previously created Ssh instance

SshScript script = new SshScript(ssh);





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

© 2021 JSCAPE LLC