Change in osmo-dev[master]: run tcpdump *after* finding programs (not before)

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Fri Sep 28 10:16:18 UTC 2018


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/11142


Change subject: run tcpdump *after* finding programs (not before)
......................................................................

run tcpdump *after* finding programs (not before)

That way we can exit when the xterm or SIP server programs are not
found without having tcpdump running in the background.

Change-Id: If487c357cbae504410545d2ed00d7e22f5e60f4f
---
M net/tmpl_std/run.sh
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-dev refs/changes/42/11142/1

diff --git a/net/tmpl_std/run.sh b/net/tmpl_std/run.sh
index 57dcc23..590b3c8 100755
--- a/net/tmpl_std/run.sh
+++ b/net/tmpl_std/run.sh
@@ -46,9 +46,6 @@
   exec $terminal -title "CN:$title" -e sh -c "export LD_LIBRARY_PATH='/usr/local/lib'; $1; echo; while true; do echo 'q Enter to close'; read q_to_close; if [ \"x\$q_to_close\" = xq ]; then break; fi; done"
 }
 
-sudo tcpdump -i $dev -n -w current_log/$dev.single.pcap -U not port 22 &
-sudo tcpdump -i lo -n -w current_log/lo.single.pcap -U not port 22 &
-
 hnbgw="osmo-hnbgw"
 msc="gdb -ex run --args $(which osmo-msc)"
 gbproxy="osmo-gbproxy"
@@ -62,6 +59,9 @@
 stp="osmo-stp"
 bsc="LD_LIBRARY_PATH=/usr/local/lib gdb -ex run --args osmo-bsc -c osmo-bsc.cfg"
 
+sudo tcpdump -i $dev -n -w current_log/$dev.single.pcap -U not port 22 &
+sudo tcpdump -i lo -n -w current_log/lo.single.pcap -U not port 22 &
+
 term "$ggsn" GGSN &
 sleep .2
 term "$stp" STP &

-- 
To view, visit https://gerrit.osmocom.org/11142
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If487c357cbae504410545d2ed00d7e22f5e60f4f
Gerrit-Change-Number: 11142
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180928/7a565c71/attachment.htm>


More information about the gerrit-log mailing list