1 USERCOUNT

  USERCOUNT is a utility that will inform a user how many "other" [4minteractive[m
processes they have active other than the current process (current process
does not have to be interactive itself).  This is good to place into one's 
LOGOUT.COM to let one know that they have other sessions logged onto the 
system (kinda helps with the security problem of forgetting to logout).

  USERCOUNT will also set a logical, SYS$LOGINS, to the number of "other"
interactive logins.  If there are no "other" interactive logins, the value
of SYS$LOGINS will be 0 (it will not include the current interactive process).

2 qualifiers     

 /OUTPUT    - Records the output to a given file.  This qualifier must 
              be first item on command line after USERCOUNT command.

2 parameters     

Parameters can be put in any order on the command line.

 LOGIN         - Will suppress the output from USERCOUNT, but will still
                 set the logical SYS$LOGINS.

 NOBATCH       - Will exit USERCOUNT if in BATCH processing mode.

 NODETACHED    - Will exit USERCOUNT if in a DETACHED processing mode.

 NONETWORK     - Will exit USERCOUNT if in a NETWORK processing mode.

 NOSUBPROCESS  - Will exit USERCOUNT if in a SUBPROCESS processing mode.

2 /OUTPUT      
  /OUTPUT=file_name

  Records the output of USERCOUNT to the file designated for file_name.  
  Must be first item on line with the USERCOUNT command

2 LOGIN    

  Will suppress the output of USERCOUNT when run, however, will still
  set the value of the logical SYS$LOGINS to the number of "other"
  interactive logins.

2 NOBATCH    

  Will suppress output of USERCOUNT if in batch mode.

2 NODETACHED    

  Will suppress output of USERCOUNT if in a detached process.

2 NONETWORK    

  Will suppress output of USERCOUNT if in a network mode.

2 NOSUBPROCESS    

  Will suppress output of USERCOUNT if in a subprocess.

2 examples    

 1.  $ USERCOUNT NOSUBPROCESS NONETWORK

In this case, USERCOUNT will provide the information as long as the running 
process is not a NETWORK process or a SUBPROCESS process.

 2.  $ USERCOUNT LOGIN

In this case, USERCOUNT will not provide any information to the screen.  The
logical SYS$LOGINS will still be defined, however.

 3.  $ USERCOUNT /OUTPUT=INFO.TXT  NOBATCH

This example will write the output information to the file INFO.TXT as long
as the running process is not a BATCH process.
