Class WindowsRemoteScripter

  • Direct Known Subclasses:
    WindowsRemoteAsadmin

    public class WindowsRemoteScripter
    extends Object
    Call a script on a remote Windows system
    Author:
    bnevins
    • Constructor Detail

    • Method Detail

      • wantStdErr

        public final void wantStdErr()
      • run

        public String run​(Collection<String> cmdArgs)
                   throws WindowsException
        Run a remote script command. Convenience method which creates one big String from the substrings
        Parameters:
        cmd - e.g. "C:/glassfish4/bin/asadmin" "start-local-instance" "i1"
        Returns:
        The stdout of the command
        Throws:
        WindowsException
      • run

        public String run​(String cmd)
                   throws WindowsException
        Run a remote script command
        Parameters:
        cmd - e.g. "C:/glassfish4/bin/asadmin start-local-instance i1"
        Returns:
        The stdout of the command
        Throws:
        WindowsException