Running a simple command and receive the output (Plugins)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
I've spent the whole weekend trying to figure out how to run a command on a session/tab and receive the output. But I couldn't.
Is there a way to run a command such a echo $USER on a open session? That should give me enzo but I have another session which using ssh and the output should be root
I tried using const { exec } = require('child_process'); but this only works on my local machine.
I also played with the rpc api, but I don't know how to receive the output after running rpc.emit('session data', uid + data)
Any ideas?
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
No source file or test is named. Start by tracing the plugin RPC API and the session data event, then determine whether an open session can execute a command and return output; done would be a documented, reproducible plugin path or a clearly scoped feature request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100