Package at.tuwien.minimee.util

Examples of at.tuwien.minimee.util.LinuxCommandExecutor


        }
    }

    private void connectOpenOfficeServer() {
        for (int port : openOfficeServerPorts) {
            LinuxCommandExecutor exec = new LinuxCommandExecutor();
            exec.setWorkingDirectory(workingDirectory);
           
            try {
                int exitValue = exec.runCommand(workingDirectory + "/startOpenOfficeServer.sh " + port);
               
                // return value "0" from the script 'startOpenOfficeServer.sh' indicates that the open office
                // server has been successfully started at port
                if (exitValue == 0) {
                    openOfficeServerPort = port;
View Full Code Here


        // This seems kind of hard core, but we have to set execution rights for the shell script,
        // otherwise we wouldn't be allowed to execute it.
        // The Java-way with FilePermission didn't work for some reason.
        //
        try {
            LinuxCommandExecutor cmdExecutor = new LinuxCommandExecutor();
            cmdExecutor.setWorkingDirectory(workingDirectory);
           
            cmdExecutor.runCommand("chmod 777 " + to);
        } catch(Exception e) {
            throw e;
        }               
    }
View Full Code Here

        // This seems kind of hard core, but we have to set execution rights for the shell script,
        // otherwise we wouldn't be allowed to execute it.
        // The Java-way with FilePermission didn't work for some reason.
        //
        try {
            LinuxCommandExecutor cmdExecutor = new LinuxCommandExecutor();
            cmdExecutor.setWorkingDirectory(workingDirectory);
           
            cmdExecutor.runCommand("chmod 777 " + to);
        } catch(Exception e) {
            throw e;
        }               
    }
View Full Code Here

        }
    }

    private void connectOpenOfficeServer() {
        for (int port : openOfficeServerPorts) {
            LinuxCommandExecutor exec = new LinuxCommandExecutor();
            exec.setWorkingDirectory(workingDirectory);
           
            try {
                int exitValue = exec.runCommand(workingDirectory + "/startOpenOfficeServer.sh " + port);
               
                // return value "0" from the script 'startOpenOfficeServer.sh' indicates that the open office
                // server has been successfully started at port
                if (exitValue == 0) {
                    openOfficeServerPort = port;
View Full Code Here

        // This seems kind of hard core, but we have to set execution rights for the shell script,
        // otherwise we wouldn't be allowed to execute it.
        // The Java-way with FilePermission didn't work for some reason.
        //
        try {
            LinuxCommandExecutor cmdExecutor = new LinuxCommandExecutor();
            cmdExecutor.setWorkingDirectory(workingDirectory);
           
            cmdExecutor.runCommand("chmod 777 " + to);
        } catch(Exception e) {
            throw e;
        }               
    }
View Full Code Here

        // This seems kind of hard core, but we have to set execution rights for the shell script,
        // otherwise we wouldn't be allowed to execute it.
        // The Java-way with FilePermission didn't work for some reason.
        //
        try {
            LinuxCommandExecutor cmdExecutor = new LinuxCommandExecutor();
            cmdExecutor.setWorkingDirectory(workingDirectory);
           
            cmdExecutor.runCommand("chmod 777 " + to);
        } catch(Exception e) {
            throw e;
        }               
    }
View Full Code Here

TOP

Related Classes of at.tuwien.minimee.util.LinuxCommandExecutor

Copyright © 2018 www.massapicom. 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.