All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rationaleemotions.pojo.Shells Maven / Gradle / Ivy

Go to download

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