Saving a list of results

A file containing a list of the results generated by a job can be generated by making adding -O <filename.txt> to a clcserver command. Differences in how to use this option when using synchronous or asynchronous mode are described below.

Notes about using -O <filename.txt>:

When using synchronous mode

Add -O <filename.txt> to the clcserver command used to submit the job.

The specified file will be created when the job starts executing, and it is populated with the list of results when the job successfully completes.

When using asynchronous mode

Add -O <filename.txt> to the clcserver command used to retrieve the results list for a completed job. I.e. use a command of the form:

clcserver -S <server> -U <username> -W <passwd> -R <processID> -O <filename.txt>

This creates the specified file and writes the list of results from the specified process to it, as well as returning the list of results to the terminal.

To write the results of multiple jobs to the same file, add additional -R <processID> terms to the command.

If -O <filename.txt> is included in a command used to submit a job asynchronously, the specified file will be created, but nothing will be written to it when the job completes. It will remain an empty file.