Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To generate a report in a format X (html, csv, xlsx), use the options format_N and output_file_N (N being a number); e.g. format_1=html output_file_1=/tmp/xyz.html. You can use up to three format/output options (and if you want just one format, then you can leave off the "_N").

Report formats csv and html can also be printed to stdout, using output_file_N=- (minus sign); Note that this does not work for xlsx, and only one format can be sent to stdout.

The output_file_N option must be a path pointing to a file. Please note that opreports-cli overwrites existing files without warning!

In addition to file-based outputs you can also specify email recipients using the email=some@addre.ss,other@addr.ess option. Please note that output_file_N is still required. The report will be emailed to all recipients with all selected formats as attachments.

...