Pc2zip

From PC2wiki
Revision as of 20:00, 11 April 2015 by Doug Lane (talk | contribs) (updated text, added directions)
Jump to: navigation, search

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