Basic scripts to run on right ports with logfile, update README

This commit is contained in:
Oskar Thoren 2019-04-10 12:22:50 +08:00
parent 7cd6fefeab
commit 5c6f2bfd5c
4 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
sync_pb2.pyc
*.tmp
.data*
*.log

View File

@ -68,7 +68,16 @@ Ok we have two (hardcoded) independent, locally running Geth nodes with swarm se
Received message Hello world from 307830346335363133316438646564393065373962373662393766323665386663303332353937383836666636386162363535376639316334626631616534366561623934343135633664663330626236343739636634306638313139373762623262323337373837663562383037643937313931663761393934613535383633336530
```
Next steps?
### How to run
```
# Run receiver
./scripts/run-bob
# Run sender
./scripts/run-alice
```
### Next steps?
- Put logs elsewhere
- Allow send and receive from both (bg subscribe)?
- Allow interactive message send?

5
hello-pss/scripts/run-alice Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env sh
echo "[Running alice with key alice.key on port 9600 and logs in alice.log.]"
go run hello_pss.go alice.key 9600 2> alice.log
echo "[Done.]"

5
hello-pss/scripts/run-bob Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env sh
echo "[Running bob with key bob.key on port 9601 and logs in bob.log.]"
go run hello_pss.go bob.key 9601 2> bob.log
echo "[Done.]"