Difference between revisions of "Run Submission Interface"

From PC2wiki
Jump to: navigation, search
(initial article)
 
m (RSI implementation (Input to pc2): more text)
Line 5: Line 5:
 
==RSI implementation (Input to pc2)==
 
==RSI implementation (Input to pc2)==
  
The [[pc2submit]] script implements the RSI command line which is:
+
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>
 
  -p <problem short-name>
Line 14: Line 16:
 
  -t <contest-time (in ms) for submission> (only allowed in CCS test mode)
 
  -t <contest-time (in ms) for submission> (only allowed in CCS test mode)
 
  -i <run id>
 
  -i <run id>
 +
 +
These options are followed by one or more source file names.
  
 
==Run Submission Command==
 
==Run Submission Command==

Revision as of 20:51, 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 invoke a RSI implementation for each run submitted using the command specified in the Run Submission Command on the Settings Tab

To make invoking a RSI program simple, pc2 uses a single variable {:options} to substituted all options.

To invoke the RSI program (/usr/local/bin/rsi) enter the following into the Run Submission Command field.

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

{:options} is the same as:

 -p {:problemshort} -l {:languagename} -u {:teamid} -m {:mainfile} -i {:runid} -t {:elapsedms} 

See Also