technote:cgi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| technote:cgi [2026/02/19 04:27] – [Setting Report Format] Scott Cunliffe | technote:cgi [2026/03/04 00:31] (current) – [Setting Report Format] Scott Cunliffe | ||
|---|---|---|---|
| Line 100: | Line 100: | ||
| Open a browser and visit: | Open a browser and visit: | ||
| - | < | + | < |
| - | Replace | + | Replace |
| If CGI is configured correctly, Apache will execute the program instead of downloading it. | If CGI is configured correctly, Apache will execute the program instead of downloading it. | ||
| Line 116: | Line 116: | ||
| To run this through the browser, use: | To run this through the browser, use: | ||
| - | < | + | < |
| Notes: | Notes: | ||
| Line 124: | Line 124: | ||
| spaces are replaced with + | spaces are replaced with + | ||
| - | To avoid using your password in plain text in the URL, create | + | When the web address is entered, a popup will be presented to enter your TapeTrack |
| Attributes are separated using the & symbol | Attributes are separated using the & symbol | ||
| Line 138: | Line 138: | ||
| Other formats are text (default), PDF & Excel. | Other formats are text (default), PDF & Excel. | ||
| - | Using CGI, to set the report format, use the variable RPT | + | Using CGI, to set the report format |
| - | < | + | < |
| - | ===== Option A: Set TMSSREPORTFORMAT Globally for Apache ===== | + | |
| + | Or if the report format stays as CSV, you can set the value globally. | ||
| Add the following to Apache configuration (inside global scope): | Add the following to Apache configuration (inside global scope): | ||
| Line 150: | Line 151: | ||
| This forces TapeTrack utilities run via Apache CGI to output in CSV format. | This forces TapeTrack utilities run via Apache CGI to output in CSV format. | ||
| + | |||
| + | ===== Report Variables ===== | ||
| + | |||
| + | All report [[variable: | ||
| + | |||
| + | A command line example of calling TMSS10Inventory, | ||
| + | |||
| + | < | ||
| + | TMSS10Inventory -S user: | ||
| + | |||
| + | Apache/CGI | ||
| + | |||
| + | < | ||
| + | |||
| ===== Example: Generate CSV Inventory Report ===== | ===== Example: Generate CSV Inventory Report ===== | ||
| Line 155: | Line 170: | ||
| Once TMSSREPORTFORMAT is set, run: | Once TMSSREPORTFORMAT is set, run: | ||
| - | < | + | < |
| The browser should display the CSV output, or prompt to open it in Excel. | The browser should display the CSV output, or prompt to open it in Excel. | ||
| - | ===== Troubleshooting ===== | + | |
| Line 175: | Line 190: | ||
| * Only allow execution in a controlled folder | * Only allow execution in a controlled folder | ||
| + | {{tag> reports utils cgi apache technote cli}} | ||
technote/cgi.1771475273.txt.gz · Last modified: 2026/02/19 04:27 by Scott Cunliffe
