SYSTEM(6)
SCORE-D COMMANDS
SYSTEM(6)
NAME
system - Execute a sequential program on the cluster in parallel

SYNOPSIS
system [-host] seqprog [arg...]

DESCRIPTION
system must be invoked by the scrun command. It executes the sequential program, seqprog, on the cluster by calling execvp(3) on each node. Arguments to seqprog should be included after the program.

The options available for system:

-host
Only one process on a host executes the sequential program. Other processes terminate immediately

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.

SEE ALSO
scrun(1), scatter(6), gather(6)

CREDIT
This document is a part of the SCore cluster system software developed at PC Cluster Consortium, Japan. Copyright (C) 2003 PC Cluster Consortium.