Created
July 31, 2017 02:23
-
-
Save ttdoda/d57fc44c072abc91e67628cb1774a75c to your computer and use it in GitHub Desktop.
サーバに接続した状態で別のサーバにコマンドを送るサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server_b="server-b mcast" | |
prompt="%" | |
connect "server-b" | |
wait prompt | |
setmulticastname server_b | |
unlink | |
connect "server-a" | |
wait prompt | |
; server-a に command1 を送る | |
sendln "command1" | |
pause 1 | |
; server-b に command2 を送る | |
sendmulticast server_b "command2"#13 | |
pause 1 | |
; server-a に command1 を送る | |
sendln "command3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment