exec method

void exec(
  1. String command, {
  2. bool wantReply = true,
})

Implementation

void exec(String command, {bool wantReply = true}) {
  assert(socket != null && sessionChannel != null);
  if (socket == null || sessionChannel == null) return;
  writeCipher(MSG_CHANNEL_REQUEST.exec(
      sessionChannel.remoteId, 'exec', command, wantReply));
}