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

Create a type of client command that maintains a connection in the background and passes the command to be executed on a case-by-case basis. #48

Open
blacknon opened this issue Jun 10, 2019 · 0 comments
Assignees

Comments

@blacknon
Copy link
Owner

blacknon commented Jun 10, 2019

s command

  • Only the connection process is executed in advance, and a daemon that keeps the connection is launched.
  • Give the daemon an execution command each time via Socket communication, and it will launch a Session and execute the command.

Create client commands such as.
The advantage is that it is easier to handle the remote server's command execution results on the local console.

image

$ echo ABCD | s sed 's/$/_123/g'
SERVER1: ABCD_123
SERVER2: ABCD_123
SERVER3: ABCD_123
...

$ echo ABCD | s sed '"s/$/"$(hostname)"/g"' | sed 's/$/_'$(hostname)'/'
SERVER1: ABCD_SERVER1_localhost
SERVER2: ABCD_SERVER2_localhost
SERVER3: ABCD_SERVER3_localhost
...
@blacknon blacknon self-assigned this Feb 18, 2022
@blacknon blacknon changed the title バックグラウンドでコネクションを維持して、実行コマンドを都度渡すタイプのクライアントコマンドの作成 Create a type of client command that maintains a connection in the background and passes the command to be executed on a case-by-case basis. May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant