Difference between revisions of "Run Submission Interface"

From PC2wiki
Jump to: navigation, search
m (Run Submission Command: improve)
(Run Submission Command: rewrite)
Line 19: Line 19:
 
These options are followed by one or more source file names.
 
These options are followed by one or more source file names.
  
==Run Submission Command==
+
==Run Submission Command (output to another CCS)==
  
pc2 can send runs submissions to another system using the RSI.   
+
pc2 can send runs submissions to another [[CCS]] using the RSI.  For each submitted run,
 +
pc2 will run a program.
  
 
To configure pc2 to invoke a RSI command enter the following into
 
To configure pc2 to invoke a RSI command enter the following into
into the Run Submission Command text field (on the [[Settings Tab]]).
+
into the '''Run Submission Command''' text field (on the [[Settings Tab]]).
  
For a RSI command <tt>/usr/local/bin/rsi</tt> the command would be:
+
By default the '''Run Submission Command''' text field contains:
  /usr/local/bin/rsi -p {:problemshort} -l {:languagename} -u {:teamid} -m {:mainfile} -i {:runid} -t {:elapsedms} {:filelist}
+
  #/usr/local/bin/rsi {:options} {:filelist}
  
To reduce typos and other errors enter the following equivalent command
+
Where the RSI program is <tt>/usr/local/bin/rsi</tt>.
/usr/local/bin/rsi {:options} {:filelist}
+
The <tt>#</tt> is used to disable the feature.  Remove the <tt>#</tt>
 +
and pc2 will invoke the <tt>rsi</tt> command.
  
As a convenience to turn off the invocation, one can turn off the invocation
+
The command above is a shorter form for the RSI, the full command that pc2 will use is:
of the command without causing an error by putting a # in front of the command, thus:
+
  /usr/local/bin/rsi -p {:problemshort} -l {:languagename} -u {:teamid} -m {:mainfile} -i {:runid} -t {:elapsedms} {:filelist}
  #/usr/local/bin/rsi {:options} {:filelist}
 
  
 
==See Also==
 
==See Also==

Revision as of 23:30, 22 January 2013

The Run Submission Interface (RSI) is a standard way to submit a run into a CCS (like pc2).

pc2 implements both and input from and output to a RSI implementation.

RSI implementation (Input to pc2)

pc2 can accept run info and submitted source files using the pc2submit command. The other CCS or system must invoke pc2submit using the RSI standard command line options, which are:

-p <problem short-name>
-l <language name>
-u <team id>
-w <team password>
-m <main source filename>
-t <contest-time (in ms) for submission> (only allowed in CCS test mode)
-i <run id>

These options are followed by one or more source file names.

Run Submission Command (output to another CCS)

pc2 can send runs submissions to another CCS using the RSI. For each submitted run, pc2 will run a program.

To configure pc2 to invoke a RSI command enter the following into into the Run Submission Command text field (on the Settings Tab).

By default the Run Submission Command text field contains:

#/usr/local/bin/rsi {:options} {:filelist}

Where the RSI program is /usr/local/bin/rsi. The # is used to disable the feature. Remove the # and pc2 will invoke the rsi command.

The command above is a shorter form for the RSI, the full command that pc2 will use is:

/usr/local/bin/rsi -p {:problemshort} -l {:languagename} -u {:teamid} -m {:mainfile} -i {:runid} -t {:elapsedms} {:filelist}

See Also