com.rationaleemotions.pojo.Shells Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-ssh Show documentation
Show all versions of simple-ssh Show documentation
A simple way of interacting with a remote host for executing commands, scp (upload and download)
The newest version!
package com.rationaleemotions.pojo;
/**
* Represents the SHELL flavors which are supported by Simple-SSH
*/
public enum Shells implements ShellAttribs {
/**
* BASH Shell.
*/
BASH {
@Override
public String envKeyword() {
return "export";
}
@Override
public String envSeparator() {
return "=";
}
@Override
public String cmdFormat() {
return "bash -c '%s'";
}
},
/**
* TCSH Shell.
*/
TCSH {
@Override
public String envKeyword() {
return "setenv";
}
@Override
public String envSeparator() {
return " ";
}
@Override
public String cmdFormat() {
return "tcsh -c '%s'";
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy