public class SSHSudoCommand
extends java.lang.Object
Constructor and Description |
---|
SSHSudoCommand(java.lang.String command) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandWithFlags()
In case 'sudo' is present in the command, we'll alter the command to be
of the form "
|
java.lang.String |
getSudoArgs() |
java.lang.String |
getSudoPath() |
boolean |
isSudoCommand() |
static boolean |
isSudoCommand(java.lang.String command)
Checks the command for 'sudoity'.
|
static java.lang.String |
safeEscape(java.lang.String str)
Replace all ' occurrences with '"'"' and then enclose str in single quotes.
|
public static boolean isSudoCommand(java.lang.String command)
command
- executable commandpublic java.lang.String getSudoPath()
public java.lang.String getSudoArgs()
public boolean isSudoCommand()
public static java.lang.String safeEscape(java.lang.String str)
public java.lang.String getCommandWithFlags()
Documentation Feedback
Copyright 2012 Micro Focus or one of its affiliates.