Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netutils/rexec/rexecd: Supports remote execution and interaction #1865

Merged
merged 2 commits into from
Jul 30, 2023

Conversation

Donny9
Copy link
Contributor

@Donny9 Donny9 commented Jul 29, 2023

Summary

  1. support popen in "r+ w+" mode
  2. supports remote execution and interaction

Impact

  1. The standard popen uses the pipeline internally, so the stream returned by it can only support read-only or write-only. Now this PR is expanded through sockpair, which can support both read and write. Therefore, we can use the stream to read and write access this task (posix_spawn).
  2. Using the above features, rexec can interact with the remote service on the command line, supporting input and output until the local voluntarily exits or the remote service ends

Testing

daily test
rexec + nxplayer

The standard popen uses the pipeline internally, so the stream
returned by it can only support read-only or write-only.
Now this patch is expanded through sockpair, which can support both
read and write. Therefore, we can use the stream to read and write
access this task (posix_spawn start).

Signed-off-by: dongjiuzhu1 <[email protected]>
using popen with r+,w+ mode to interact with the remote service on
the command line, supporting input and output until the local
voluntarily exits or the remote service ends.

Signed-off-by: dongjiuzhu1 <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit fb7dafc into apache:master Jul 30, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants