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
...
scommandCreate 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