From f4bac440d5c7f2c16b5a2b93d37574951dfb61bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Mert=20Y=C4=B1ld=C4=B1ran?= Date: Mon, 17 Jan 2022 16:30:47 +0300 Subject: [PATCH] Update `dev.sh` --- Development-Workflows.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Development-Workflows.md b/Development-Workflows.md index 0988311..7b21776 100644 --- a/Development-Workflows.md +++ b/Development-Workflows.md @@ -191,20 +191,24 @@ Save this script to a file named `dev.sh`: ```bash #!/bin/bash -rm -rf entries/ && mkdir -p entries && rm -rf pprof/* && make clean && make agent +rm -rf entries/ && mkdir -p entries && \ +rm -rf pprof/* && make clean && make agent && \ sudo setcap cap_net_raw,cap_net_admin=eip ./agent/build/mizuagent -./agent/build/mizuagent --api-server & \ +basenine -port 9099 & \ PID1=$! && \ +./agent/build/mizuagent --api-server & \ +PID2=$! && \ sleep 0.5 && \ GOGC=12800 NODE_NAME=dev \ ./agent/build/mizuagent \ -i any \ --tap \ --api-server-address ws://localhost:8899/wsTapper & \ -PID2=$! && \ +PID3=$! && \ read -r -d '' _ Replace `-i any \` line with `-r http.cap \` for working on a [PCAP](https://en.wikipedia.org/wiki/Pcap) file. (e.g. [http.cap](https://wiki.wireshark.org/SampleCaptures?action=AttachFile&do=get&target=http.cap))