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>:
- The contents of the file can be referred to directly, or used with the clcresultparser tool.
- The specified file will overwrite any existing file of the same name in the location being written to.
- When just the file name is provided as an argument for
-O, the file is written to the working directory. To write to another location, provide the full path, including the name of the file to create and write to. All directories in the path must already exist.
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.
