-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
fix gpu_metrics_collector to support pyenv fix NASUI failure on dev-install-node-modules add .gitignore links for dev-install
if (useShell) { | ||
captureStdOut = true; | ||
channel.stdin.write(`${command}\n`); | ||
captureStdOut = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Firstly set captureStdOut = true
, then set captureStdOut = false
, what is the purpose of this operation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It used to reduce output in log, but it may bring confusing. So removed this flag.
}; | ||
|
||
if (useShell) { | ||
client.shell(callback); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how to exec command in client.shell
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It supports in ssh2 package, and the command will be send in 'ready' event as above lines
if (useShell) {
channel.stdin.write(`${command}\n`);
channel.end("exit\n");
}
Add shell support for ssh connection, so that remote script can be started with user environment.
Minor fixes,
#1578