diff options
| author | bt <bt@rctt.net> | 2026-04-08 13:37:56 +0200 |
|---|---|---|
| committer | bt <bt@rctt.net> | 2026-04-14 22:14:55 +0200 |
| commit | b9d3b7ea9df409794eefe48ae1003e8444f519bb (patch) | |
| tree | 465a283f97ef4bfeb8a4496535e8bad5b72b448e /tools/run-many.sh | |
| parent | 976c419df403c9810fc705aa21273fe34d438597 (diff) | |
| download | solec-b9d3b7ea9df409794eefe48ae1003e8444f519bb.tar.gz solec-b9d3b7ea9df409794eefe48ae1003e8444f519bb.zip | |
[daemon] Server to server communication
Diffstat (limited to 'tools/run-many.sh')
| -rwxr-xr-x | tools/run-many.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/run-many.sh b/tools/run-many.sh new file mode 100755 index 0000000..9c84e0d --- /dev/null +++ b/tools/run-many.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# to use this script add 127.0.0.2 address to loopback interface and add +# following lines to hosts file +# 127.0.0.1 localhost s1 +# 127.0.0.2 s2 + +tmux \ + new-session "go run cmd/daemon/main.go -a 127.0.0.1:9999 -n s1; read" \; \ + split-window "go run cmd/daemon/main.go -a 127.0.0.2:9999 -n s2; read" \; \ + split-window "sleep 0.5; go run cmd/client/main.go -u u1 -a s1:9999; read" \; \ + split-window "sleep 0.5; go run cmd/client/main.go -u u2 -a s2:9999; read" \; \ + select-layout tiled;
\ No newline at end of file |
