Difference between revisions of "Extractor"

From PC2wiki
Jump to: navigation, search
m (add to description)
m (See also: rename cat)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
pc2extract extracts contest information from a pc2 server.  The command meets a [[CCS]] requirement
 
pc2extract extracts contest information from a pc2 server.  The command meets a [[CCS]] requirement
 
to extract information from a server.
 
to extract information from a server.
 +
 +
The Extractor was introduced in [[Version 9.3]] build 2583.
  
 
==Usage==
 
==Usage==
Line 13: Line 15:
 
==Usage and Features==
 
==Usage and Features==
  
  Usage: [options] CCS_reportname [outfilename]
+
  Usage: pc2extract [options] CCS_reportname [outfilename]
  
pc2extract extracts 3 TSV files from the contest to stdout.  If the optional
+
pc2extract outputs a CCS TSV file/data from the contest to stdout.  If the optional
 
outfilename is supplied the output will be written to that file.
 
outfilename is supplied the output will be written to that file.
  
submissions produces a [[submissions.tsv]] file
+
The following is a list of valid CCS_reportnames and the output
scoreboard produces a [[scoreboard.tsv]] file
+
file format that is created.
results produces a [[results.tsv]] file
+
 
 +
{| class="wikitable"
 +
! CCS_reportname 
 +
! Outputs 
 +
|-
 +
|submissions ||[[submissions.tsv]]
 +
|-
 +
| scoreboard ||[[scoreboard.tsv]]  
 +
|-
 +
| results ||[[results.tsv]]  
 +
|-
 +
| accounts ||[[accounts.tsv]]
 +
|-
 +
|}
  
 
===Examples===
 
===Examples===
Line 43: Line 58:
 
==See Also==
 
==See Also==
 
* [[PC² scripts]]
 
* [[PC² scripts]]
 +
* [[Export Tab]]
 +
* [[Reports]] - list of reports that PC^2 creates
 
* For command line options from a file see article [[Command_Line#-F_option| -F option on the command line]]
 
* For command line options from a file see article [[Command_Line#-F_option| -F option on the command line]]
 
* [[Command Line]] format/options
 
* [[Command Line]] format/options
 
* [[CCS]]
 
* [[CCS]]
  
[[Category:Version 9.3]] [[Category:CCS]]
+
[[Category:Version 9.3]] [[Category:CLICS]]
 +
[[Category:Import and Export]]

Latest revision as of 10:21, 3 December 2016

pc2extract extracts contest information from a pc2 server. The command meets a CCS requirement to extract information from a server.

The Extractor was introduced in Version 9.3 build 2583.

Usage

To produce usage use the command

pc2extract --help

The pc2extract like all other pc2 scripts, supports the -F option to specify some or all command line options in a file.

Usage and Features

Usage: pc2extract [options] CCS_reportname [outfilename]

pc2extract outputs a CCS TSV file/data from the contest to stdout. If the optional outfilename is supplied the output will be written to that file.

The following is a list of valid CCS_reportnames and the output file format that is created.

CCS_reportname Outputs
submissions submissions.tsv
scoreboard scoreboard.tsv
results results.tsv
accounts accounts.tsv

Examples

pc2extract --login scoreboard1 --password scoreboard1 

To list usage use

pc2extract --help

Usage Example

Usage: [options] CCS_reportname [outfilename]

--login loginName - login name (or use -u)
--password password - login password (or use -w) 

CCS_reportname - one of the following submissions, scoreboard, results

Example: Extractor --login scoreboard1 --password scoreboard1 scoreboard

See Also