Command line |
The syntax for running Proteus depends on the version being considered:
The command line is the following:
proteus [parameters] [program] [input|.|..] [output|.|..] ...
If the interpreter is run without arguments, it will print to the console a short summary explaining usage.
This is the meaning of each command line parameter:
-v |
print interpreter version and quit |
-h |
short usage summary (just like running without arguments) |
-c |
sets error level to 0 if and only if the script syntax is correct; the program is not executed |
-f |
overwrite output, if it exists (mutually exclusive with -q) |
-a |
append to output, if it exists (mutually exclusive with -q) |
-q |
abort without overwriting output, if it exists (mutually exclusive with -f and -a) |
-o |
ignore output and write to standard output (PRINT[LN] like CONSOLE[LN], but using EOL as a terminator) |
-z |
set input/output to '..'; all parameters specified after the name of the program are considered user parameters |
-i |
ignore input and read data from standard input (mutually exclusive with -p) |
-p |
read program from standard input (ignore parameter program; mutually exclusive with -i) |
-g |
ignore unknown directives |
-j |
look for the script in the paths specified in the environment variable PATH |
-k |
Unix: replace '\' with '/' in file names Dos/Windows: replace '/' with '\' in file names |
-x |
load program from the line "#!..proteus..", ignoring everything before this line |
-dn |
date format; n can be 0 (mm/dd/yyyy), 1 (dd/mm/yyyy), 2 (yyyy/mm/dd) |
-tn |
time format; n can be 0 (24 hours) or 1 (12 hours) |
-en |
epoch (for interpreting dates with years expressed in two digits) |
-ws |
set access rights for output (see predefined variable FILE_MASK) |
-ls |
value for predefined variable EOL (line terminator for writing to output; can include C-like constants) |
-bs |
value for predefined variable CEOL (line terminator for writing to console; can include C-like constants) |
-rs |
value for predefined variable EEOL (line terminator for writing to standard error channel; can include C-like constants) |
-ns |
define the label s (case sensitive) |
-us |
remove the definition of label s (case sensitive) |
-ss |
use string s as default extension for output |
-ms |
use string s as predefined value for MONTHS |
-ys |
use string s as predefined value for DAYS |
-$ | verify the authenticity of a .prk file (set of keys for a protected program) and exit |
-! | wait for a keypress before returning control to the operating system when the program ends |
Predefined values are:
Note:
There is no command line for this version.
The command line is the following:
proteus [parameters] [program]
When run without arguments, Proteus prints out to console a short usage summary.
This is the meaning of the command line parameters:
-installinstall Proteus Service -removeremove an installed service -debugrun the service as a console application; program file, if not specified, will be read from registry key. Remember to accurately test and debug a script to be run as a service, especially if it is going to be run when system starts ("Automatic" service; see Windows Help for details: Control Panel, Administrative Tools, Services, Proteus Service properties).
Start of page | Next topic | Previus topic | Contents | Index |