Navigation:  PRS Administration Guide > PRSMon Administration Program >

Command-line Execution

Previous pageReturn to chapter overviewNext page

PRSMon can be scripted (run from other programs) using the following command-line parameters.

 

Command-line Parameter

Description

/backup

Executes the PRSMon Compact and Backup Database command and performs the backup only.

/compact

Executes the PRSMon Compact and Backup Database command and performs the database compaction only.

/compactbackup

Executes the PRSMon Compact and Backup Database command and performs both database compaction and backup.

/copy

Disable user logons, wait for current users to logoff and then create Offline Copies of the shared data for PRS Offline Access updates.        

/disable

Disable user logons, wait for current users to logoff.

/enable

Allow users to logon.

 

When the PRSMon is run using a command-line parameter it executes the command without user interaction and then closes once the command has completed, returning an exit code.

 

The PRSMon command-line parameters are mutually exclusive (only use one at a time).

 

Use the PRSMon program Exit Codes to test the success or otherwise of command-line execution.

 

If you have set a database password and use the /compact or /compactbackup command-line options you will be prompted to manually enter the database password. For this reason these options are unsuitable for unattended execution.