technote:command_line_diagnosis
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| technote:command_line_diagnosis [2025/07/04 03:09] – Scott Cunliffe | technote:command_line_diagnosis [2025/07/04 04:27] (current) – [Forwarding The Stdout And Stderr Files] Scott Cunliffe | ||
|---|---|---|---|
| Line 37: | Line 37: | ||
| ZBT004N-13: | ZBT004N-13: | ||
| ZBT005N-13: | ZBT005N-13: | ||
| - | ZBT006N-13: | ||
| - | ZBT000N-13: | ||
| - | ZBT002N-13: | ||
| - | ZBT002N-13: | ||
| - | ZBT002N-13: | ||
| - | ZBT002N-13: | ||
| - | ZBT002N-13: | ||
| - | ZBT002N-13: | ||
| - | ZBT002N-13: | ||
| - | ZBT002N-13: | ||
| - | ZBT002N-13: | ||
| - | ZBT000N-13: | ||
| - | ZBT001N-13: | ||
| - | ZBT001W-13: | ||
| - | ZBT001N-13: | ||
| - | ZBT001E-13: | ||
| - | ZBT900N-13: | ||
| - | ZBT901N-13: | ||
| - | ZBT000N-13: | ||
| - | ZBT000N-13: | ||
| - | ZBT991N-13: | ||
| - | ZBT992N-13: | ||
| - | ZBT993N-13: | ||
| - | ZBT999N-13: | ||
| </ | </ | ||
| + | |||
| + | ===== Locating The Stdout And Stderr Files ===== | ||
| + | |||
| + | Command line programs, while they can be run directly in a command prompt, are usually executed via a batch file on Windows or bash script on Linux servers. | ||
| + | |||
| + | ==== Locate Batch File Via Windows Scheduler ==== | ||
| + | |||
| + | Open [[technote: | ||
| + | |||
| + | {{event.png}} | ||
| + | |||
| + | In this example you can see the batch file Daily.bat is located at '' | ||
| + | |||
| + | ==== Locate Stdout And Stderr ==== | ||
| + | |||
| + | navigate to the batch file using File Explorer, right click on the batch file and select '' | ||
| + | |||
| + | The file may contain different variables at the top, setting various actions for the creation of the report or task. Following this will be a line of code calling the command line program with various attributes followed by the redirections of the stdout and stderr streams. | ||
| + | |||
| + | < | ||
| + | TMSS10Inventory -S user: | ||
| + | </ | ||
| + | |||
| + | The redirect ''>'' | ||
| + | |||
| + | The redirect '' | ||
| + | |||
| + | If the file location uses variables in the path, you will need to find the value of the variable to decode the path. | ||
| + | |||
| + | Standard variables set by TapeTrack upon installation include | ||
| + | |||
| + | < | ||
| + | TMSS10BACK=C: | ||
| + | TMSS10DB=C: | ||
| + | TMSS10REPORTS=C: | ||
| + | TMSS10SCRIPTS=C: | ||
| + | TMSS10SYNCBASE=C: | ||
| + | </ | ||
| + | |||
| + | For example | ||
| + | |||
| + | < | ||
| + | TMSS10MoveList -S %TTSERVER% > " | ||
| + | </ | ||
| + | |||
| + | The stderr stream is directed to '' | ||
| + | ==== Forwarding The Stdout And Stderr Files ==== | ||
| + | |||
| + | Using a file zipping program, such as winzip or 7zip, zip up the files (batch file, stdout and stderr files) and attach the file to the [[common: | ||
| + | |||
| + | {{tag> | ||
technote/command_line_diagnosis.1751598590.txt.gz · Last modified: 2025/07/04 03:09 by Scott Cunliffe
