Please enable JavaScript to view this site.

Take Command / TCC Help v. 26

Navigation: TCC > Commands

CHRONIC

Scroll Prev Top Next More
Purpose:Run a command and hides its STDOUT and STDERR output unless the command fails

 

Format:CHRONIC [/R] command ...

 

/R (stderr)

 

Usage:

 

CHRONIC runs a command and hides its STDOUT and STDERR output unless the command fails (i.e., the return code is != 0). If the command succeeds, no output is displayed.

 

CHRONIC will display the STDOUT and STDERR output separately. For example:

 

c:\> CHRONIC testcommand

Exit code: 2

STDOUT:

stdout output here ...

STDERR:

stderr output here ...

 

CHRONIC will only display the STDOUT: / STDERR: labels if the command actually wrote to the matching output.

 

Options:

 

/RDisplay the output if the command writes to STDERR, even if the return code = 0. If /R is not specified, CHRONIC will only display the output if the command returns a non-zero exit code.