Difference between revisions of "Run Submission Interface"

From PC2wiki
Jump to: navigation, search
m (RSI implementation (Input to pc2): more text)
m (Run Submission Command: improve)
Line 21: Line 21:
 
==Run Submission Command==
 
==Run Submission Command==
  
pc2 can invoke a RSI implementation for each run submitted using
+
pc2 can send runs submissions to another system using the RSI. 
the command specified in the Run Submission Command on the [[Settings Tab]]
 
  
To make invoking a RSI program simple, pc2 uses a single variable <tt>{:options}</tt>
+
To configure pc2 to invoke a RSI command enter the following into
to substituted all options.
+
into the Run Submission Command text field (on the [[Settings Tab]]).
  
To invoke the RSI program (/usr/local/bin/rsi) enter the following into
+
For a RSI command <tt>/usr/local/bin/rsi</tt> the command would be:
the Run Submission Command field.
+
/usr/local/bin/rsi -p {:problemshort} -l {:languagename} -u {:teamid} -m {:mainfile} -i {:runid} -t {:elapsedms} {:filelist}
 +
 
 +
To reduce typos and other errors enter the following equivalent command
 
  /usr/local/bin/rsi {:options} {:filelist}
 
  /usr/local/bin/rsi {:options} {:filelist}
  
{:options} is the same as:
+
As a convenience to turn off the invocation, one can turn off the invocation
  -p {:problemshort} -l {:languagename} -u {:teamid} -m {:mainfile} -i {:runid} -t {:elapsedms}  
+
of the command without causing an error by putting a # in front of the command, thus:
 +
#/usr/local/bin/rsi {:options} {:filelist}
  
 
==See Also==
 
==See Also==

Revision as of 20:59, 8 August 2012

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

pc2 can send runs submissions to another system using the RSI.

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

For a RSI command /usr/local/bin/rsi the command would be:

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

To reduce typos and other errors enter the following equivalent command

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

As a convenience to turn off the invocation, one can turn off the invocation of the command without causing an error by putting a # in front of the command, thus:

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

See Also