On Saturday, October 8, 2016 at 6:47:27 PM UTC-4, Sam Roza wrote: > > None of them seemed to ever do anything when fully put together like this. > Note that I did add '@-' to the end of the command with the xargs on it, > since I believe it is necessary when using the -d option. >
i think that this is what you want: ngrep -l -q -d eth0 '0004a369e0d6'| sed -e 's/T.*//;/^\s*$/d' | xargs -n 1 curl http://localhost:9999 -s -d note the -n 1 that tells xargs to execute on each line. the -d tells curl to use the next argument as the data for a POST (or a GET if you use the -G option). xargs feeds each data string as an argument to curl, so we want the -d last with nothing following 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.
