
jtopenlite.com.ibm.jtopenlite.samples.CallCommandSSL Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400 Show documentation
Show all versions of jt400 Show documentation
The Open Source version of the IBM Toolbox for Java
package com.ibm.jtopenlite.samples;
import com.ibm.jtopenlite.command.*;
public class CallCommandSSL {
public static void main(String args[]) {
try {
String system = args[0];
String userid = args[1];
String password = args[2];
String command = args[3];
// The first boolean parameter indicates that SSL should be used.
CommandConnection connection = CommandConnection.getConnection(
true, system, userid, password);
CommandResult result = connection.execute(command);
System.out.println(result);
} catch (Exception e) {
e.printStackTrace();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy