Difference between revisions of "Pc2submit"

From PC2wiki
Jump to: navigation, search
m (Usage: fixed error)
m (Usage: added usage 2 and see also sections)
Line 1: Line 1:
 
pc2submit and pc2submit shows contest information and allow a user to submit a [[Run]].
 
pc2submit and pc2submit shows contest information and allow a user to submit a [[Run]].
  
==Usage==
+
==Usage 1 - PC²==
  
 
To produce usage use the command
 
To produce usage use the command
Line 29: Line 29:
 
  $Id: Submitter.java 2312 2011-09-07 18:52:57Z laned $
 
  $Id: Submitter.java 2312 2011-09-07 18:52:57Z laned $
  
 +
==Usage 2 - CCS ==
  
[[Category:Version 9.3]]
+
===Required Options===
 +
 
 +
Must specify all these options:
 +
 
 +
-p <problem short-name>
 +
-l <language name>
 +
-u <team id>
 +
-w <team password>
 +
-m <main source filename>
 +
-d <directory for main source and other source files>
 +
 
 +
==Optional Options==
 +
This is a [[CCS]] optional option
 +
 
 +
-t <contest-time for submission>
 +
 
 +
Here are other supported options:
 +
 
 +
--help  this listing
 +
 +
--check  check parameters, list filename, problem and language
 +
 +
--list  list problem and languages
 +
 +
--listruns list run info for the user
 +
 
 +
==See Also==
 +
* [[CCS]]
 +
 
 +
[[Category:Version 9.3]] [[Category:CCS]]
  
 
==See Also==
 
==See Also==

Revision as of 16:36, 8 January 2012

pc2submit and pc2submit shows contest information and allow a user to submit a Run.

Usage 1 - PC²

To produce usage use the command

pc2submit--help

For example

Usage Submitter [--help|--list|--listruns|--check] --login loginname [--password password] filename [problem [language]]
Usage Submitter [-F propfile] [--help|--list|--listruns|--check] filename [problem [language]]

Submit filename for problem and language.  If problem or language
not specified the program will guess which problem and language
based on the file name.

--help   this listing

--check  check parameters, list filename, problem and language

--list   list problem and languages

--listruns list run info for the user

On success exit code will be 0
On failure exit code will be non-zero

$Id: Submitter.java 2312 2011-09-07 18:52:57Z laned $

Usage 2 - CCS

Required Options

Must specify all these options:

-p <problem short-name>
-l <language name>
-u <team id>
-w <team password>
-m <main source filename>
-d <directory for main source and other source files>

Optional Options

This is a CCS optional option

-t <contest-time for submission> 

Here are other supported options:

--help   this listing

--check  check parameters, list filename, problem and language

--list   list problem and languages

--listruns list run info for the user

See Also

See Also