How can I pass arguments (from the command line) to a tshark/Lua script? asked 07 Dec '11, 07:51 Trevor edited 07 Dec '11, 07:52 |
3 Answers:
[This is a really old question, but I came upon it while searching through Lua-related questions and thought it should be updated] The latest wireshark automated builds (nightly 1.11.3) have the ability to pass one or more arguments to a Lua script. It's done with a '
In the above command, the string " Note that inside your script (i.e., inside foo.lua or bar.lua) you access the passed-in arguments through the '
answered 07 Mar '14, 18:16 Hadriel |
I recently learned how to make lua scripts for tshark. I believe I recall seeing in passing that passing args from command line to script cannot be done at this time. I don't recall where that was though. answered 07 Dec '11, 13:19 studog |
Someone had asked this a while ago on one of the mailing lists... The only way (AFAIK) to pass arguments to a WS Lua script is to use environment variables, as shown here:
answered 07 Dec ‘11, 13:27 helloworld |