Difference between revisions of "Pc2zip"

From PC2wiki
Jump to: navigation, search
m (first edition)
 
(Rearranged examples to give priority to V9; expanded introductory explanation.)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
pc2zip - script to create pc2 zip file.  This file is used by the [[PC² Team]].
+
'''pc2zip''' is a command (script) which creates a ''pc2zip'' file.  This file contains information regarding the state of any PC² module
 +
which has been run in the directory from which the command is executed.  The pc2zip file can be used by the [[PC² Team]] to help analyze problems which may have occurred while running PC².  In particular, it allows us to avoid having to ask a number of questions about which OS was being used, which version of PC² was run, and similar issues.
 +
The contents of the pc2zip file, especially the log files therein, provides information which the PC²
 +
team can potentially use to help solve any problems with PC².
  
To create a [[PC² zip file]] use the script pc2zip, this script will
+
To create a [[PC&sup2; zip file]], run the script <tt>pc2zip</tt>, located in the <tt>bin</tt> folder, from the folder in which PC&sup2; was run.  (For example, type the command <tt>./bin/pc2zip</tt> on a Linux machine, or <tt>.\bin\pc2zip</tt> on a Windows machine.)  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=
 +
# Create the .zip file using pc2zip as described above
 +
# Send the .zip file to the PC&sup2; team.
  
== See Also ==
+
=Examples=
 +
 
 +
 
 +
== Version 9 Example ==
 +
 
 +
In this example the file 200902242146-pc2archive.zip is created.
 +
 
 +
Send 200902242146-pc2archive.zip to the PC&sup2; 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
 +
 
 +
== Version 8 Example ==
 +
 
 +
In this example the file 200902242149-Site-1.zip is created.
 +
 
 +
Send 200902242149-Site-1.zip to the PC&sup2; 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>
 +
 
 +
= See Also =
 
* [[Troubleshooting]]
 
* [[Troubleshooting]]
 
+
* [[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]

Latest revision as of 11:36, 12 November 2018

pc2zip is a command (script) which creates a pc2zip file. This file contains information regarding the state of any PC² module which has been run in the directory from which the command is executed. The pc2zip file can be used by the PC² Team to help analyze problems which may have occurred while running PC². In particular, it allows us to avoid having to ask a number of questions about which OS was being used, which version of PC² was run, and similar issues. The contents of the pc2zip file, especially the log files therein, provides information which the PC² team can potentially use to help solve any problems with PC².

To create a PC² zip file, run the script pc2zip, located in the bin folder, from the folder in which PC² was run. (For example, type the command ./bin/pc2zip on a Linux machine, or .\bin\pc2zip on a Windows machine.) This script will create a .zip file in the archive/ directory.

Directions

  1. Create the .zip file using pc2zip as described above
  2. Send the .zip file to the PC² team.

Examples

Version 9 Example

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

Send 200902242146-pc2archive.zip to the PC² 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

Version 8 Example

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

Send 200902242149-Site-1.zip to the PC² 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>

See Also