<<

NAME

runreport.pl - Run pre-existing saved reports

SYNOPSIS

runreport.pl [ -h | -m ] [ -v ] reportID [ reportID ... ]

 Options:
   -h --help       brief help message
   -m --man        full documentation, same as --help --verbose
   -v --verbose    verbose output

   --format=s      selects format. Choice of text, html, csv, or tsv

   -e --email      whether to use e-mail (implied by --to or --from)
   --to=s          e-mail address to send report to
   --from=s        e-mail address to send report from
   --subject=s     subject for the e-mail


 Arguments:
   reportID        report ID Number from saved_sql.id, multiple ID's may be specified

OPTIONS

-help

Print a brief help message and exits.

-man

Prints the manual page and exits.

-v

Verbose. Without this flag set, only fatal errors are reported.

-format

Current options are text, html, csv, and tsv. At the moment, text and tsv both produce tab-separated tab-separated output.

-email

Whether to use e-mail (implied by --to or --from).

-to

E-mail address to send report to. Defaults to KohaAdminEmailAddress.

-from

E-mail address to send report from. Defaults to KohaAdminEmailAddress.

-subject

Subject for the e-mail message. Defaults to "Koha Saved Report"

DESCRIPTION

This script is designed to run existing Saved Reports.

USAGE EXAMPLES

runreport.pl 16

In the most basic form, runs the report specified by ID number from saved_sql.id, in this case #16, outputting the results to STDOUT.

runreport.pl 16 17

Same as above, but also runs report #17.

TO DO

SEE ALSO

Reports - Guided Reports

<<