Difference between revisions of "Command Line"

From PC2wiki
Jump to: navigation, search
m (initial version)
(updated with examples and content)
Line 1: Line 1:
The command line options for [[PC²]]
+
The command line options for [[PC²]] for [[Version 9]]
  
==Version 9==
+
These are options that can be used with the [[PC² scripts]].
 +
 
 +
All these command line options are optional, if not specified the user will
 +
be prompted via GUI to enter the information.
 +
 
 +
==Login/Password options==
  
 
{|border="1" cellpadding="2"
 
{|border="1" cellpadding="2"
|+ [[First Server]] only
 
 
! Option!! Description !! Example
 
! Option!! Description !! Example
 
|-
 
|-
|<code>--contestpassword </code> ||[[Contest password]]||<code>--contestpassword pass </code>
+
|<code>--login [[Login name|Login]]</code>||[[Login name]]||<code>--login server1</code><br> <code>--login team2</code><br>
 +
|-
 +
|<code>--password [[Password]]</code>||[[Password]]||<code>--password [[Password]]</code>
 
|-
 
|-
 
|}
 
|}
  
 +
===Examples===
 +
 +
This will attempt to login account team3 with the password <tt>passone</tt>.
 +
 +
pc2team --login team3 --password passone
  
{|border="1" cellpadding="2"
+
This will attempt to login account team3 with the password <tt>team3</tt> (A [[joe account]])
|+ [[Server]] only
 
! Option!! Description !! Example
 
|-
 
|<code>--server</code>||this option must be specified when logging as a server||<code>--server</code>
 
|}
 
  
 +
pc2team --login team3
  
 +
==First Server Options==
  
 
{|border="1" cellpadding="2"
 
{|border="1" cellpadding="2"
 +
|+ [[First Server]] only
 
! Option!! Description !! Example
 
! Option!! Description !! Example
 
|-
 
|-
|<code>--login [[Login name|Login]]</code>||[[Login name]]||<code>--login server1</code><br> <code>--login team2</code><br>
+
|<code>--contestpassword </code> ||[[Contest password]]||<code>--contestpassword pass </code>
|-
 
|<code>--password [[Password]]</code>||[[Password]]||<code>--password [[Password]]</code>
 
 
|-
 
|-
 
|}
 
|}
 +
 +
===Examples===
 +
 +
This will attempt to start a [[first server]] with contest password contest33
 +
login account site1 with the password <tt>site1</tt>.
 +
 +
pc2server --login site1 --contestpassword contest33
 +
 +
This will attempt to login account site2 with the password <tt>sitepass2</tt>.
 +
 +
pc2server --login site2 --password sitepass2

Revision as of 16:47, 20 July 2009

The command line options for PC² for Version 9

These are options that can be used with the PC² scripts.

All these command line options are optional, if not specified the user will be prompted via GUI to enter the information.

Login/Password options

Option Description Example
--login Login Login name --login server1
--login team2
--password Password Password --password Password

Examples

This will attempt to login account team3 with the password passone.

pc2team --login team3 --password passone

This will attempt to login account team3 with the password team3 (A joe account)

pc2team --login team3

First Server Options

First Server only
Option Description Example
--contestpassword Contest password --contestpassword pass

Examples

This will attempt to start a first server with contest password contest33 login account site1 with the password site1.

pc2server --login site1 --contestpassword contest33

This will attempt to login account site2 with the password sitepass2.

pc2server --login site2 --password sitepass2