Skip to content

Instantly share code, notes, and snippets.

@ttdoda
Created July 31, 2017 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttdoda/d57fc44c072abc91e67628cb1774a75c to your computer and use it in GitHub Desktop.
Save ttdoda/d57fc44c072abc91e67628cb1774a75c to your computer and use it in GitHub Desktop.
サーバに接続した状態で別のサーバにコマンドを送るサンプル
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