Package com.sun.grid.util.expect

Examples of com.sun.grid.util.expect.Expect.exec()


                expect.command().add( sgeRoot.getAbsolutePath() + File.separatorChar + "util" + File.separatorChar + "arch");

                ArchExpectHandler archHandler = new ArchExpectHandler();
                expect.add(archHandler);
                try {
                    int res = expect.exec(10000);
                    if(res != 0) {
                       throw new IOException("arch script exited with status (" + ret +")");
                    }

                    ret = archHandler.getArch();
View Full Code Here


       
        ErrorHandler errorHandler = new ErrorHandler();
        expect.add(errorHandler);
       
        try {           
            int exitCode = expect.exec(60*1000);
           
            // exit codes are defined in juti.h (see auth_result_t)
            // 0 means success, 1 means invalid username of password,
            // 2 means error
            switch(exitCode) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.