how to hide command prompt window pop up in client system when executing command or doing file operation using node-ssh
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- networking
調査の方向性
まず、node-ssh の exec、put、get メソッドを通じて Windows の動作を再現し、通常の実行と、サイズ 0 の pty を使用する execOptions での実行を比較します。pty に依存せずにコマンドウィンドウが非表示になり、stderr が分離されたまま、コマンド出力にターミナルエスケープシーケンスが含まれなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
In windows OS, if sshd.exe is running as a system service then it will suppress the GUI applications and runs them in hidden mode when triggered through ssh.
So, to avoid running GUI applications in hidden mode, I'm running sshd.exe process in windows (client system) as local user instead of system service. And GUI applications in client can be seen when invoked through node-ssh.
Now, when ever node-ssh' exec, put file, get file methods are used, a cmd window pop up appears on the client system.
Is there way to hide this window pop up other than using pty?
When execOptions: { pty: { width: 0, height: 0 } } is used, window pop is avoided but it lead to another problem. Using pty, stderr is always empty. The data is redirected to stdout . Also the output contains some extra characters as below:
{
code: null,
signal: null,
stdout: '\x1B[2J\x1B[m\x1B[H\x1B]0;Administrator: C:\\Windows\\system32\\conhost.exe\x07\x1B[?25hdesktop-85hs42d\\administrator',
stderr: ''
}
stderr is empty when exec command execution has error
{
code: null,
signal: null,
stdout: "\x1B[2J\x1B[m\x1B[H\x1B]0;Administrator: C:\\Windows\\system32\\conhost.exe\x07\x1B[?25h\x1B[38;5;9mwhoami. : The term 'whoami.' is not recognized as the name of a cmdlet, \x1B[m\x1B[38;5;9m\r\n" +
'function, script file, or operable program. Check the spelling of the name, or \r\n' +
'if a path was included, verify that the path is correct and try again.\r\n' +
'At line:1 char:1\r\n' +
'+ whoami.\r\n' +
'+ ~~~~~~~\r\n' +
' + CategoryInfo : ObjectNotFound: (whoami.:String) [], CommandNotF \r\n' +
' oundException\r\n' +
' + FullyQualifiedErrorId : CommandNotFoundException',
stderr: ''
}
- 主要言語
- TypeScript
- スター
- 1k
- フォーク
- 94
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
steelbrain/node-ssh のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
steelbrain/node-ssh#487 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
steelbrain/node-ssh#482 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
steelbrain/node-ssh#474 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
steelbrain/node-ssh#473 · コメント 1 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
steelbrain/node-ssh#472 ·
steelbrain/node-ssh の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundariesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
lingdojo/kana-dojo#34127 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
osmlab/name-suggestion-index#13104 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100