Package com.jcabi.ssh

Interface Shell

    • Method Detail

      • exec

        int exec​(String command,
                 InputStream stdin,
                 OutputStream stdout,
                 OutputStream stderr)
          throws IOException
        Execute and return exit code.
        Parameters:
        command - Command
        stdin - Stdin (will be closed)
        stdout - Stdout (will be closed)
        stderr - Stderr (will be closed)
        Returns:
        Exit code
        Throws:
        IOException - If fails
        Suppressed Checkstyle violations:
        ParameterNumberCheck (5 line)