DFisRunning

DFisRunning — Determine if the DFdiscover master program is currently running on the licensed DFdiscover machine

Synopsis

DFisRunning [-q]

Description

DFisRunning is a utility program that determines whether or not DFmaster.rpcd is currently running on the licensed DFdiscover machine. It is most useful in shell scripts and cron jobs that need to determine if DFdiscover is operational before proceeding.

Options

-q

execute in quiet mode. Do not echo any messages to standard output. The result of the command can be determined from the command status, where 0 indicates that the master is not running, and 1 indicates that it is.

Exit Status

DFisRunning exits with one of the following statuses:

0

The DFdiscover master is not running.

1

The DFdiscover master is running.

2

There is an error in the command-line arguments or the hostname executing the DFdiscover master cannot be determined/located.

Examples

Example 4.6. Report on the current status of the DFdiscover master, first in quiet mode and then in non-quiet mode

% DFisRunning -q
% echo $status
1
% DFisRunning
DFmaster is running on 'oberon'.
% echo $status
1