Package org.jboss.fresh.shell

Examples of org.jboss.fresh.shell.Shell.execute()


                ProcessInfo pinf = null;
                cmd = "cat > " + file;
                log.debug(cmd);
                if (shell != null) {
                    pinf = shell.execute(cmd);
                    sos = new ShellOutputStream(shell, pinf.procid);
                } else {
                    pinf = rshell.execute(cmd);
                    sos = new ShellOutputStream(rshell, pinf.procid);
                }
View Full Code Here


                    return;
                }
                cmd = "cat > " + file + " &< " + f.getAbsolutePath();
                log.debug(cmd);
                if (shell != null) {
                    shell.execute(cmd);
                } else {
                    rshell.execute(cmd);
                }
                log.log(NOTICE, "Created file " + file + ", wrote " + f.length() + " bytes.");
            } else if (url != null) {
View Full Code Here

                    ProcessInfo pinf = null;
                    cmd = "cat > " + file;
                    log.debug(cmd);
                    if (shell != null) {
                        pinf = shell.execute(cmd);
                        sos = new ShellOutputStream(shell, pinf.procid);
                    } else {
                        pinf = rshell.execute(cmd);
                        sos = new ShellOutputStream(rshell, pinf.procid);
                    }
View Full Code Here

                }
            } else if (create) {
                cmd = "touch " + file;
                log.debug(cmd);
                if (shell != null) {
                    shell.execute(cmd);
                } else {
                    rshell.execute(cmd);
                }
                log.log(NOTICE, "Created empty file " + file + ".");
            }
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.