Difference between revisions of "Pc2zip"

From PC2wiki
Jump to: navigation, search
m (added sample use sections)
m (updated text, added directions)
Line 1: Line 1:
pc2zip - script to create pc2 zip file.  This file is used by the [[PC² Team]].
+
pc2zip - script to create pc2 zip file.  This file is used by the [[PC² Team]] to,
 +
in part, avoid having to ask a number of questions about which OS, which version of pc2.
 +
The information, especially the log files, provides potential information to the pc2
 +
team to help solve any problems with pc2.
  
To create a [[PC² zip file]] use the script pc2zip, this script will
+
To create a [[PC&sup2; zip file]] use the script <tt>pc2zip</tt>, this script will
 
create a .zip file in the archive/ directory.
 
create a .zip file in the archive/ directory.
  
The procedure is describe in the FAQ in the section  [http://www.ecs.csus.edu/pc2/doc/faq/index.html#HELP Getting Help]
+
=Directions=
as well as in this following Example of use sections.
+
# Create the .zip file using pc2zip
 +
# Send the .zip file to the pc2 team.
  
== Example of use (Version 8) ==
+
=Examples=
  
In this example the file archive\200902242149-Site-1.zip is created,
+
== Version 8 Example ==
the pc2 team requests that users send the zip file (archive\200902242149-Site-1.zip)
 
to the pc2 team.
 
  
  c:\pc2> pc2zip
+
In this example the file 200902242149-Site-1.zip is created.
 +
 
 +
Send 200902242149-Site-1.zip to the pc2 team.
 +
 
 +
  c:\pc2> bin\pc2zip
 
  Tue Feb 24 13:49:51 PST 2009 Creating archive\200902242149-Site-1.zip
 
  Tue Feb 24 13:49:51 PST 2009 Creating archive\200902242149-Site-1.zip
 
  Tue Feb 24 13:49:51 PST 2009 Adding db\clar.db
 
  Tue Feb 24 13:49:51 PST 2009 Adding db\clar.db
Line 45: Line 51:
 
  c:\pc2>
 
  c:\pc2>
  
== Example of use (Version 9) ==
+
== Version 9 Example ==
  
In this example the file archive\200902242146-pc2archive.zip is created,
+
In this example the file 200902242146-pc2archive.zip is created.
the pc2 team requests that users send the zip file (archive\200902242146-pc2archive.zip)
 
to the pc2 team.
 
  
  c:\pc2> pc2zip
+
Send 200902242146-pc2archive.zip to the pc2 team.
 +
 
 +
  /home/pc2 > bin/pc2zip
 
  Tue Feb 24 13:46:24 PST 2009 Creating archive\200902242146-pc2archive.zip
 
  Tue Feb 24 13:46:24 PST 2009 Creating archive\200902242146-pc2archive.zip
 
  Tue Feb 24 13:46:24 PST 2009 Adding executesite1judge3\cstderr.pc2
 
  Tue Feb 24 13:46:24 PST 2009 Adding executesite1judge3\cstderr.pc2
Line 76: Line 82:
 
  Tue Feb 24 13:46:24 PST 2009 Adding results.xml
 
  Tue Feb 24 13:46:24 PST 2009 Adding results.xml
 
  Tue Feb 24 13:46:24 PST 2009 Closing archive\200902242146-pc2archive.zip
 
  Tue Feb 24 13:46:24 PST 2009 Closing archive\200902242146-pc2archive.zip
c:\pc2>
 
  
== See Also ==
+
= See Also =
 
* [[Troubleshooting]]
 
* [[Troubleshooting]]
 
* [[PC&sup2; scripts]]
 
* [[PC&sup2; scripts]]
 
==External Links==
 
 
* PC&sup2; [[FAQ]] [http://www.ecs.csus.edu/pc2/doc/faq on-line here]
 
* PC&sup2; [[FAQ]] [http://www.ecs.csus.edu/pc2/doc/faq on-line here]

Revision as of 20:00, 11 April 2015

pc2zip - script to create pc2 zip file. This file is used by the PC² Team to, in part, avoid having to ask a number of questions about which OS, which version of pc2. The information, especially the log files, provides potential information to the pc2 team to help solve any problems with pc2.

To create a PC² zip file use the script pc2zip, this script will create a .zip file in the archive/ directory.

Directions

  1. Create the .zip file using pc2zip
  2. Send the .zip file to the pc2 team.

Examples

Version 8 Example

In this example the file 200902242149-Site-1.zip is created.

Send 200902242149-Site-1.zip to the pc2 team.

c:\pc2> bin\pc2zip
Tue Feb 24 13:49:51 PST 2009 Creating archive\200902242149-Site-1.zip
Tue Feb 24 13:49:51 PST 2009 Adding db\clar.db
Tue Feb 24 13:49:51 PST 2009 Adding db\global.set
Tue Feb 24 13:49:51 PST 2009 Adding db\global.set.bak
Tue Feb 24 13:49:51 PST 2009 Adding db\local.set
Tue Feb 24 13:49:51 PST 2009 Adding db\local.set.bak
Tue Feb 24 13:49:51 PST 2009 Adding db\runinfo.dat
Tue Feb 24 13:49:51 PST 2009 Adding db\runs\s1r1.fil
Tue Feb 24 13:49:51 PST 2009 Adding evals.log
Tue Feb 24 13:49:51 PST 2009 Adding execute\cstderr.pc2
Tue Feb 24 13:49:51 PST 2009 Adding execute\cstdout.pc2
Tue Feb 24 13:49:51 PST 2009 Adding execute\estderr.pc2
Tue Feb 24 13:49:51 PST 2009 Adding execute\estdout.pc2
Tue Feb 24 13:49:51 PST 2009 Adding execute\sumit.class
Tue Feb 24 13:49:51 PST 2009 Adding execute\sumit.dat
Tue Feb 24 13:49:51 PST 2009 Adding execute\sumit.java
Tue Feb 24 13:49:51 PST 2009 Adding index.html
Tue Feb 24 13:49:51 PST 2009 Adding OLD\prob1-200810290332\prob1.txt
Tue Feb 24 13:49:51 PST 2009 Adding OLD\prob1-200810290334\prob1.txt
Tue Feb 24 13:49:51 PST 2009 Adding pc2admin.log
Tue Feb 24 13:49:51 PST 2009 Adding pc2judge.log
Tue Feb 24 13:49:51 PST 2009 Adding pc2reset
Tue Feb 24 13:49:51 PST 2009 Adding pc2serv.log
Tue Feb 24 13:49:51 PST 2009 Adding pc2team.log
Tue Feb 24 13:49:51 PST 2009 Adding pc2v8.ini
Tue Feb 24 13:49:51 PST 2009 Adding policy.ini
Tue Feb 24 13:49:51 PST 2009 Adding reject.ini
Tue Feb 24 13:49:51 PST 2009 Adding sitelist.ini
Tue Feb 24 13:49:51 PST 2009 Closing archive\200902242149-Site-1.zip
c:\pc2>

Version 9 Example

In this example the file 200902242146-pc2archive.zip is created.

Send 200902242146-pc2archive.zip to the pc2 team.

/home/pc2 > bin/pc2zip
Tue Feb 24 13:46:24 PST 2009 Creating archive\200902242146-pc2archive.zip
Tue Feb 24 13:46:24 PST 2009 Adding executesite1judge3\cstderr.pc2
Tue Feb 24 13:46:24 PST 2009 Adding executesite1judge3\cstdout.pc2
Tue Feb 24 13:46:24 PST 2009 Adding executesite1judge3\sumit.cpp
Tue Feb 24 13:46:24 PST 2009 Adding executesite1judge3\sumit.java
Tue Feb 24 13:46:24 PST 2009 Adding executesite1judge3\sumit.py
Tue Feb 24 13:46:24 PST 2009 Adding executesite1team2\cstderr.pc2
Tue Feb 24 13:46:24 PST 2009 Adding executesite1team2\cstdout.pc2
Tue Feb 24 13:46:24 PST 2009 Adding executesite1team2\estderr.pc2
Tue Feb 24 13:46:24 PST 2009 Adding executesite1team2\estdout.pc2
Tue Feb 24 13:46:24 PST 2009 Adding executesite1team2\Sumit.class
Tue Feb 24 13:46:24 PST 2009 Adding executesite1team2\sumit.dat
Tue Feb 24 13:46:24 PST 2009 Adding executesite1team2\Sumit.java
Tue Feb 24 13:46:24 PST 2009 Adding logs\pc2.startup-0.log
Tue Feb 24 13:46:24 PST 2009 Adding logs\pc2.startup-0.log.lck
Tue Feb 24 13:46:24 PST 2009 Adding logs\TEAM2@site0-0.log
Tue Feb 24 13:46:24 PST 2009 Adding logs\TEAM2@site0-0.log.lck
Tue Feb 24 13:46:24 PST 2009 Adding logs\TEAM2@site1.security-0.log
Tue Feb 24 13:46:24 PST 2009 Adding logs\TEAM2@site1.security-1.log
Tue Feb 24 13:46:24 PST 2009 Adding logs\TEAM2@site1.security-1.log.lck
Tue Feb 24 13:46:24 PST 2009 Adding pc2export.dat
Tue Feb 24 13:46:24 PST 2009 Adding pc2reset
Tue Feb 24 13:46:24 PST 2009 Adding results.xml
Tue Feb 24 13:46:24 PST 2009 Closing archive\200902242146-pc2archive.zip

See Also