mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

* send end_of_data event for all kind of streams * send process_finished event containing exit code of child process for executed programs * move raw-tests to separate directory * expose name of input stream to readers * better handling of some error cases in raw reader * new force_kill option for raw reader which SIGKILLs progesses on exit The ordering of events how they arrive in the main loop is a bit peculiar at the moment. The process_finished event arrives in scriptland before all of the other events, even though it should be sent last. I have not yet fully figured that out.
36 lines
767 B
Text
36 lines
767 B
Text
[source=cat |, reader=Input::READER_RAW, mode=Input::STREAM, name=input2, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print outfile, A::description;
|
|
print outfile, A::tpe;
|
|
print outfile, A::s;
|
|
try = try + 1;
|
|
if (2 == try)
|
|
{
|
|
Input::remove(input2);
|
|
close(outfile);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
[stdin] = hello^Jthere^A^B^C^D^E^A^B^Cyay
|
|
}]
|
|
Input::EVENT_NEW
|
|
hello
|
|
[source=cat |, reader=Input::READER_RAW, mode=Input::STREAM, name=input2, fields=<no value description>, want_record=F, ev=line
|
|
{
|
|
print outfile, A::description;
|
|
print outfile, A::tpe;
|
|
print outfile, A::s;
|
|
try = try + 1;
|
|
if (2 == try)
|
|
{
|
|
Input::remove(input2);
|
|
close(outfile);
|
|
terminate();
|
|
}
|
|
|
|
}, config={
|
|
[stdin] = hello^Jthere^A^B^C^D^E^A^B^Cyay
|
|
}]
|
|
Input::EVENT_NEW
|
|
there^A^B^C^D^E^A^B^Cyay
|