Powershell Script started with SshCommand keeps running even after connectivity loss
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 4.4k
- フォーク
- 993
- 平均マージ
- 9日 21時間
- マージ済み PR(30日)
- 1
説明
I wanted to start a specific .ps1 file with SSH, so I tried running the script with both SSH.NET and SSH on the Terminal. After testing a little bit I noticed, that after a connectivity loss the Script started with the Terminal drops itself regardless of the progress, on the other Hand with SSH.NET the .ps1 file keeps running even if the connection is dropped.
for SSH.NET I used this Code to start the .ps1-File:
sshc.Connect();
using (var cmd = sshc.CreateCommand("powershell.exe -command C:\\Test.ps1\""))
{
cmd.Execute();
}
sshc.Disconnect();
So I want to know why does SSH.NET keeps the script alive and is this a wanted feature
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Connect()、CreateCommand()、Execute()、Disconnect() を使用する、示されている SSH.NET のフローから始め、C:\Test.ps1 の実行中に接続を切断して動作を再現します。ターミナルの動作と比較し、SSH 接続が失われた後もコマンドの実行が継続することが想定されているかを判断し、その結果の動作を文書化またはテストします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, powershell
- 領域
- networking
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100