All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jtopenlite.com.ibm.jtopenlite.command.package-info Maven / Gradle / Ivy

There is a newer version: 20.0.8
Show newest version

/**
 * Provides classes to call commands on an IBM i host.
 *
 *

* The {@link com.ibm.jtopenlite.command.CommandConnection } class is used to establish * a connection to the command server. The following is a simple example of a program to * call a command on the server. * *

import com.ibm.jtopenlite.command.*;

public class CallCommand {
    public static void main(String args[]) {
	try {
	    String system = args[0];
	    String userid = args[1];
	    String password = args[2];
	    String command = args[3];
	    CommandConnection connection = CommandConnection.getConnection(
                                           system, userid, password);
	    CommandResult result = connection.execute(command);
	    System.out.println(result);
	} catch (Exception e) {
	    e.printStackTrace();
	}
    }
}

 
*/ package com.ibm.jtopenlite.command;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy