196197198199200201202203204205206
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); }
218219220221222223224225226227228
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) {
235236237238239240241242243244245
257258259260261262263264265266267
} } 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 + "."); }