SSH Factory

com.jscape.sscl
Class SSCL

java.lang.Object
  extended by com.jscape.sscl.SSCL

public class SSCL
extends java.lang.Object

Runs a script using commands defined in the Secure Shell Command Line language.


Constructor Summary
SSCL()
          Constructs new SSCL instance.
 
Method Summary
 void execute(byte[] script)
          Executes commands provided in byte[]
 void execute(java.io.File script)
          Executes commands provided in file.
static void main(java.lang.String[] args)
          Launches SSCL application.
 void setDebugStream(java.io.PrintStream ps)
          Sets the debug stream used by SSCL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSCL

public SSCL()
Constructs new SSCL instance.

Method Detail

execute

public void execute(java.io.File script)
             throws SSCLException
Executes commands provided in file.

Parameters:
script - the script to execute
Throws:
SSCLException - if an error occurs

execute

public void execute(byte[] script)
             throws SSCLException
Executes commands provided in byte[]

Parameters:
script - the commands to execute
Throws:
SSCLException - if an error occurs

setDebugStream

public void setDebugStream(java.io.PrintStream ps)
Sets the debug stream used by SSCL. By default debugging is enabled and System.out is used

Parameters:
ps - a java.io.PrintStream
See Also:
PrintStream

main

public static void main(java.lang.String[] args)
Launches SSCL application.

Parameters:
args - a set of command line arguments

SSH Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved