Class ShellTask

java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
All Implemented Interfaces:
com.sshtools.common.ssh.RequestFuture, Closeable, AutoCloseable, Runnable

public class ShellTask extends AbstractShellTask<SessionChannelNG>
A Task that starts a remote shell with an allocated PTY. You cannot directly create a ShellTask, instead use ShellTask.ShellTaskBuilder.
 client.addTask(ShellTaskBuilder.create().
      withTermType("vt320").
      withColumns(132).
      withRows(48).
      onClose((task, session) -> System.out.println("Closed!")).
      build());