steelbrain / steelbrain/node-ssh
Close Command Execution Not Working
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1k
- Forks
- 94
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm running a command using execCommand method. Also I'm passing a onChannel ( clientChannel: ClientChannel) option as parameter to get client channel connection.
My issue is that I can't by any mean stop the command execution (simulating a CTRL-C during an execution).
I've tried:
clientChannel.close()
clientChannel.end()
clientChannel.write('\x03')
clientChannel.signal('INT')
To test this out, I run a command with execCommand then I close it, and after I check my running processes on my server it's still running there. I have to mannually kill them with kill {pid}.
What am I missing?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing execCommand and its onChannel callback, focusing on the ClientChannel methods close(), end(), write(), and signal() described in the report. Reproduce the command execution and process check on the server; done means stopping the channel also stops the remote command process.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100