Launching PxPlus |
|
1. |
Windows 32-Bit: path \pxplus\pxplus.exe [ winprms ][ ini ][ overrides ][ prog ][ pvxprms ][ -ARG list ] |
2. |
UNIX: path /pxplus/pxplus [ overrides ][ prog ][ pvxparms ][ -ARG list ] |
Where:
path \pxplus\pxplus.exe |
Specific Windows or UNIX/Linux command to start PxPlus in Command mode. |
-ARG list |
The dash and keyword (-ARG) mark the start of a list of optional arguments you can pass to the program on start-up. The list of arguments (arg1 arg2 ...) is space separated. If an argument contains spaces, enclose it in quotation marks. For more information on arguments, see NAR system variable and ARG( ) function. | ||||||||||||
-cpl |
When the Command line contains the -cpl tag, the *compiler program will look for the source file provided, convert it to a program file and output any errors on *stderr* or an error file specified on the Command line. The syntax of the -cpl option is: pxplus -cpl [ sourcetext ] programfile [ -pswd password ] [ -err errfile ] Where:
See Command Line Compiler/Lister. Note: | ||||||||||||
ini |
Name of an INI file to use (for Windows and UNIX/Linux as of PxPlus v10). Optional. String expression. You can have different start_up commands with different INI files so that each application can be set up with its own defaults for fonts, window size, etc. Default: See INI Files (Windows). | ||||||||||||
-lst |
When the Command line contains -lst, the *compiler program is expected to take a program file and list it to either an ASCII text file or stdout. The syntax of the -lst option is: pxplus -lst programfile [ sourcetext ] [ -pswd password ] [ -err errfile ] Where:
See Command Line Compiler/Lister. Note: | ||||||||||||
overrides |
Optional arguments that override start_up. Valid overrides are:
| ||||||||||||
prog |
Optional name of a program to run at start-up (lead program). C:\pxplus\pxplus.exe -PC=10 | ||||||||||||
pvxprms |
Optional PxPlus system parameters to be set from the Command line. Most PxPlus system parameters are valid, including:
The dash is mandatory and indicates that the argument is a parameter. Do not use single quotes. However, it is better programming practice to set/reset parameters from within PxPlus applications via the SET_PARAM directive. See System Parameters. | ||||||||||||
winprms |
(For Windows Only) Optional window parameters:
|
The formats above describe the various syntax elements you can include in your Command line to start PxPlus. It is strongly recommended that you always include the full (absolute) path name of the executable file in this command.
To Return Command-Line Values
As noted above, you can use the ARG( ) and FID( ) functions, as well as the HWD, NAR and LPG system variables, to retrieve the values in current use.
Example:
The following example illustrates the basic command in Windows:
C:\my_directory\pxplus\pxplus.exe This command includes a lead program: C:\my_directory\pxplus\pxplus.exe my_program
Other syntax elements appear as follows:
C:\pxplus\pxplus.exe -mn program_1 -dr=h:\acct_pay
C:\pxplus\pxplus.exe myapp.ini my_program -id=t0 -dr=mary -xt=1
C:\my_directory\pvx\pxplus.exe myapp.ini windx
C:\my_directory\pvx\pxplus.exe myapp.ini *nthost
The *compiler program will automatically be called whenever the Command line starting PxPlus contains -cpl or -lst. Internally, when either of these parameters is detected in the Command line, the system will run *compiler as the lead program and pass all Command line parameters starting with the -cpl or -lst to the program.
The purpose of this program is to then parse the Command line to extract the name of a program file and either compile a text file from source to create the program or list the program. Errors will display in the error output as filename:lineno:chofst: errmsg.
Examples:
[path]pxplus[.exe] -cpl pgm\pgrm.txt pgm\pgrm.pxp -err tmp\err.txt -pswd password
[path]pxplus[.exe] -cpl pgm\pgrm.txt pgm\pgrm.pxp -err tmp\err.txt
[path]pxplus[.exe] -cpl pgm\pgrm.txt pgm\pgrm.pxp 2>tmp\err.txt
[path]pxplus[.exe] -cpl pgm\pgrm.pxp -err tmp\err.txt 0<pgm\pgrm.txt
[path]pxplus[.exe] -cpl pgm\pgrm.pxp 2>tmp\err.txt 0<pgm\pgrm.txt
[path]pxplus[.exe] -lst pgm\pgrm.pxp pgm\pgrm.txt -err tmp\err.txt
[path]pxplus[.exe] -lst pgm\pgrm.pxp pgm\pgrm.txt
[path]pxplus[.exe] -lst pgm\pgrm.pxp -err tmp\err.txt 1>pgm\pgrm.txt
[path]pxplus[.exe] -lst pgm\pgrm.pxp 1>pgm\pgrm.txt
[path]pxplus[.exe] -lst pgm\pgrm.pxp -pswd password 1>pgm\pgrm.txt
[path]pxplus[.exe] -lst pgm\pgrm.pxp -err tmp\err.txt -pswd password 1>pgm\pgrm.txt