public class SSHMacros extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
chmod(SSHServer aServer,
String sRemotePathOrFile,
String sMod) |
static int |
chmodRecursive(SSHServer aServer,
String sRemotePath,
boolean bFiles,
String sPattern,
String sMod) |
static void |
createPropertiesFile(SSHServer aServer,
String sRemotePath,
String sRemoteFile,
Properties lProps) |
static int |
dumpToFile(SSHServer aServer,
String sRemoteFile,
String sContent) |
static int |
execScript(SSHServer aServer,
String sRemoteScript,
String... lArguments) |
static boolean |
existsDir(SSHServer aServer,
String sRemotePath) |
static String |
getEnvHOME(SSHServer aServer) |
static String |
getEnvTEMP(SSHServer aServer) |
static int |
mkdir(SSHServer aServer,
String sRemotePath) |
static int |
moveFile(SSHServer aServer,
String sSrcPath,
String sSrcFile,
String sDstPath,
String sDstFile) |
static String |
readFromExec(SSHServer aServer,
String sExec) |
static int |
touch(SSHServer aServer,
String sRemotePath,
String sRemoteFile) |
static int |
uploadResourceFile(SSHServer aServer,
String sResourceFile,
String sRemoteFile) |
static int |
uploadResourceTree(SSHServer aServer,
String sResourceTree,
String sRemoteTree) |
public static String readFromExec(SSHServer aServer, String sExec) throws Exception
Exceptionpublic static boolean existsDir(SSHServer aServer, String sRemotePath) throws Exception
Exceptionpublic static int execScript(SSHServer aServer, String sRemoteScript, String... lArguments) throws Exception
Exceptionpublic static int mkdir(SSHServer aServer, String sRemotePath) throws Exception
Exceptionpublic static int touch(SSHServer aServer, String sRemotePath, String sRemoteFile) throws Exception
Exceptionpublic static int chmod(SSHServer aServer, String sRemotePathOrFile, String sMod) throws Exception
Exceptionpublic static int chmodRecursive(SSHServer aServer, String sRemotePath, boolean bFiles, String sPattern, String sMod) throws Exception
Exceptionpublic static int moveFile(SSHServer aServer, String sSrcPath, String sSrcFile, String sDstPath, String sDstFile) throws Exception
Exceptionpublic static int dumpToFile(SSHServer aServer, String sRemoteFile, String sContent) throws Exception
Exceptionpublic static int uploadResourceFile(SSHServer aServer, String sResourceFile, String sRemoteFile) throws Exception
sResourceFile - [IN]
the absolute path and file name of a local resource within class path.sRemoteFile - [IN]
the absolute path and file name of the target file at remote site.Exceptionpublic static int uploadResourceTree(SSHServer aServer, String sResourceTree, String sRemoteTree) throws Exception
ExceptionCopyright © 2016 as-development.net. All rights reserved.