Invoking PRO/5, Command Line Options

When invoking PRO/5, some command line options may be used. The following is an example of a command line using the options:

pro5 -q -m<int> -w<int> -c<config> -t<term> -u<userid> -a<applicationname>
-n<username> program - -args

Switch

Description

-q

Suppresses the start-up message, and is useful when running PRO/5 in background.

-m<int> and –w<int>

Specifies the number of pages for the initial workspace (default 64)*. Under the UNIX operating system, the workspace is only limited by the size of system memory. If -w is used, this also specifies the maximum START size usable in PRO/5. All workspace allocation will then be within the initially allocated memory.

*As of Visual PRO/5 6.0, the initial workspace default is 2048 pages or 512 KB.

Four (4) PRO/5 PAGES = 1KB of memory.

For more information on the memory allocation switches, -p, -m, and -w, refer to the Workspace documentation.

-c<config>

Specifies the path to the configuration file.

-t<term>

Enables the desired value for FID(0) to be selected from the command line. This has the same effect as setting the BBTERM environment variable. If both BBTERM and the -t flag are used, the -t flag takes precedence.

-u<userid>

Specifies the user account to be used for data server access. (VPRO/5 only)

-a<applicationname

Whenever Visual PRO/5 exits, the current size and location of the terminal window, the font size, and the current color map assignments are saved, so that they may be restored the next time Visual PRO/5 is started. If you use more than one Visual PRO/5 application, or users share a workstation, or both, use the following command line parameters so that separate environment settings can be saved. (VPRO/5 only)

-n<username>

Select a set of user preferences used liberally to customize environments. For example, if two people, Ted and Mary, share the same workstation, they might add -nTed and -nMary to their respective Visual PRO/5 startup command lines. (VPRO/5 only)

program

Program specifies the name of a program that PRO/5 will execute upon load.

-args

Parameters passed as arguments to an application program. Use ARGV() and ARGC functions to access args. Place a space before and after the hyphen. To include embedded spaces in an argument, put it in quotes.

-r

Determines tty and ttyname

-

By itself separates pgm specific arguments

-?

Displays the usage message (listing all of the options)

Exiting PRO/5

To exit PRO/5 console mode, enter "RELEASE" or "BYE" to return to the host operating system.

NOTE: Never exit PRO/5 or any PRO/5 application by turning off, or rebooting your computer. This improper procedure may corrupt open files.