On Sunday, November 6, 2016 at 12:14:08 PM UTC-5, Brad Tucker wrote: And here is the celebration dance... Hope Im not doing this too early but I > have a couple hours of tcpflow going and I see data in both my database and > on my skin. PIZZA PARTY! >
thank *you* for being patient. nice work! > One last question... How would you recommend implementing the tcpflow > command so it runs with the service. Currently Im running it manually from > the command line with an "&" to send it to the background but Id like to > automate this. > put the one-liner in a shell script, say /usr/local/bin/wxcapture.sh: #!/bin/sh sudo tcpflow -C -i eth1 -s tcp dst port 80 | ./combine-lines.pl | xargs -n 1 curl http://192.168.1.19:9999 -s -d then make the script executable: sudo chmod 755 /usr/local/bin/wxcapture.sh then invoke capture.sh in your init system somewhere. one approach is to invoke it in /etc/rc.local. another approach is to invoke it in the start section of the weewx init script. another approach is to create a systemd unit file for it. m -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
