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);
}
osw = new OutputStreamWriter(sos, "UTF-8");
osw.write(content);
log.log(NOTICE, "Created file " + file + ", processed " + content.length() + " characters.");