mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/zeek-script-args'
* origin/topic/jsiwek/zeek-script-args: Improve zeek_script_args test case and documentation Apply suggestions from code review Add a test for script args. Fixed an option processing bug Make it possible to pass command line options through to scripts.
This commit is contained in:
commit
d62fb3ab9a
9 changed files with 103 additions and 4 deletions
|
@ -454,6 +454,18 @@ type connection: record {
|
|||
inner_vlan: int &optional;
|
||||
};
|
||||
|
||||
## Arguments given to Zeek from the command line. In order to use this, Zeek
|
||||
## must use a ``--`` command line argument immediately followed by a script
|
||||
## file and additional arguments after that. For example::
|
||||
##
|
||||
## zeek --bare-mode -- myscript.zeek -a -b -c
|
||||
##
|
||||
## To use Zeek as an executable interpreter, include a line at the top of a script
|
||||
## like the following and make the script executable::
|
||||
##
|
||||
## #!/usr/local/zeek/bin/zeek --
|
||||
const zeek_script_args: vector of string = vector();
|
||||
|
||||
## Default amount of time a file can be inactive before the file analysis
|
||||
## gives up and discards any internal state related to the file.
|
||||
option default_file_timeout_interval: interval = 2 mins;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue