From: Michael Tremer Date: Mon, 22 Sep 2025 12:56:24 +0000 (+0000) Subject: generator: Implement writing the output to stdout X-Git-Tag: 0.4~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9ccabe1c45e6015acd2bd8abcd05bf5db8c0a3;p=suricata-reporter.git generator: Implement writing the output to stdout Signed-off-by: Michael Tremer --- diff --git a/src/suricata-report-generator.in b/src/suricata-report-generator.in index 9f309fc..ee7736b 100644 --- a/src/suricata-report-generator.in +++ b/src/suricata-report-generator.in @@ -769,6 +769,10 @@ def main(): setup_logging(loglevel=loglevel) + # Check whether we should send the output document to standard output + if args.output == "-": + args.output = "/dev/stdout" + # Change locale if args.locale: locale.setlocale(locale.LC_ALL, locale.normalize(args.locale))