SYSTEM(6) | SYSTEM(6) |
The options available for system:
The system command is designed to execute the sequential command in parallel on a cluster. To distinguish from other processes, environment variables, SCORE_SELF_PROC, SCORE_SELF_HOST, SCORE_SELF_NODE, SCORE_NUM_PROC, SCORE_NUM_HOST, and SCORE_NUM_NODE are set the appropriate value.
Upon execution, the current working directory is set to a temporary directory created each time a parallel job is run. The temporary directory is located somewhere in the SCore-D directory (/var/scored in multi-user mode, /var/tmp/scored/<user-ID> in single-user mode ) on each host. By doing this, the temporary file created by the scatter(6) program can be read by the sequential program on each host. There are library functions, sc_create_temporary_file() and sc_open_temporary_file() to create or access the temporary file without regarding to the exact pathname.