Open topic with navigation

TIBCO® Patterns 6.1.2

## NSC Commands

### Command

## -cmd

All NSC commands are prefaced by the `-cmd` parameter. Command line switches that follow the specified cmd parameter are arguments to the command.

### Batch Command

The NSC can accept a series of commands as follows:

- The commands should reside in a file.

- Each command in the file will start on its own line.

- Blank lines are not permitted.

- Processing will stop if a blank line is encountered.

- A line will be considered a comment if it starts with ‘//’.

## batch –file <file> [-repetitions <n>] [-sleep <msec>] [-gc] [-log <log-file>] [-qa]

Example of a batch file:

    // Create a table with indexes.
    -cmd tblcreate -table mytable -file "C:\Netrics\Data\CreateNewTable\tabdef.csv"
    // Display the indexes on the table.
    -cmd idxlist -tables mytable

Argument | Details
--- | ---
`-repetitions <n>` | Causes the entire batch file to be rerun ‘n’ number of times. The default value (1) causes the batch file to be issued only once.
`-sleep <msec>` | Results in a pause between –cmd executions. –sleep is specified in milliseconds (1000 milliseconds = 1 second). The default value is 0, which does not delay processing.
-`gc` | Forces Java garbage collection immediately after the -cmd is complete. The default is to let normal garbage collection occur.
`-log <log-file>` | The ‘-log’ argument directs output to the specified file during the batch file execution. The default is for the output to go to `stdout` and `stderr`.
`-qa` | Suppresses batch processing informational content such as timestamps.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Patterns

Copyright © 2010-2025. Cloud Software Group, Inc. All Rights Reserved.