1 SPY
      $ [4mSPY process_name/options[0m 
 This command shows you what other users are doing.  If the username and
 options are omitted all BATCH and INTERACTIVE processes are listed as well as
 any other processes which are not in hibernation.  
2 process_name
 Selects the name of the process to list.  Any process containing the name
 you type will be listed.  For example:  
      $ [4mSPY ER[0m 
 Will list processes "WALKER", "ERROR", and "my dinner" but not process
 "SYSTEM".  
      $ [4mSPY TTA[0m 
 SPY will list all processes containing the string "TTA" 
2 /ALL
 Lists all processes 
2 /BATCH
 Lists all batch processes 
2 /BELL
 Rings the terminal bell every time the base priority of a listed process
 changes.  
 (Default:NOBELL) 
2 /ERASE
 Erases the screen and presents the listing in full screen mode.  /NOERASE
 prevents screen erasure, and the listing scrolls by.  
 (Default:interactive=ERASE, batch=NOERASE) 
2 /FULL
 Extra information is shown on the screen.  For a listing of the information
 see topic:SPY format.  
2 /IMAGENAME
      /IMAGENAME=name 
 Selects the processes by image name to spy on.  SPY will list any processes
 where the image name contains the specified name.  For example:  
      $ [4mSPY /IMAGENAME=EDT[0m 
 Selects only processes running EDT.  
      $ [4mSPY /IMAGENAME=[SYSEXE][0m 
 Selects only processes running programs which reside in directory SYSEXE.  
      $ [4mSPY /IMAGENAME=DUA0:[0m  
 Selects only processes running programs which reside on disk DUA0:  
2 /INTERACTIVE
 Lists all interactive processes 
2 /NETWORK
 Lists all Network processes 
2 /OTHER
 Lists all processes other than INTERACTIVE, BATCH or NETWORK.  
2 /REPEAT
      /REPEAT=n 
 Selects the number of times to repeat.  This is the number of screen
 updates.  The default for interactively running SPY will repeat for about 1
 hour.  
 (Default:interactive=360, batch=0) 
2 /TERMINAL
      /TERMINAL=name 
 Selects the processes by terminal name.  All terminals containing the
 "name" are selected.  For example:  
      $ [4mSPY /TERMINAL=TTA[0m Selects terminals TTA2, TTA5 but not TXA1.  
      $ [4mSPY /TERMINAL=6[0m Selects terminals TTA6, TXB6 but not TXA1.  
2 /UPDATE
      /UPDATE=n 
 Selects the number of seconds per update.  The default is 5 sec.  
2 /USERNAME
      /USERNAME=name 
 Selects the user to spy on.  
      $ [4mSPY /USERNAME=SYSTEM[0m 
 Selects only processes owned by SYSTEM.  
2 format
 Spy lists the the following information:  

                                     [4mAlways listed[0m
      1.  The process name.  
      2.  The terminal if interactive, or process type (Batch,Network,----).
          A subprocess is "*terminalname".  
      3.  The user name.  
      4.  The total Cpu time consumed as a percentage of the total real
          time.  
      5.  The current %Cpu averaged over about 1 minute.  
      6.  The login time (hours:min) 
      7.  The current, base, and default priorities.  
      8.  The current image name.  (To see all of it use the WIDE command) 

                                      [4m/FULL lists[0m
      9.  The process state.  
     10.  The cpu time limit.  (hour:min) 
     11.  The total cpu time consumed.  (hour:min:sec) 
     12.  ACCOUNT=Account charged for the CPU time.  
     13.  BIO=Number of buffered input/output operations.  These are all
          fortran reads or writes.  
     14.  DIO=Number of direct I/O operations.  Generally this reflects
          binary tape I/O and image activation.  
     15.  FILES=The number of files currently open.  
     16.  VOLUMES=The number of volumes (devices) allocated.  
     17.  IMAGES=The number of images activated (programs run).  
3 priority
 Your actual priority varies according to what you are doing.  If you are
 hibernating your current priority rises to give you fast response.  For
 example while your process is waiting for keyboard input it will
 hibernate and the priority will rise.  When you press the "Return" key
 your process awakens and then your priority will drop back to the "base"
 priority.  3 priorities are listed by SPY in the following order.  
      1.  Current priority.  All other processes with higher current
          priority will be given CPU time in preference to your process.  
      2.  Base priority (adjusted by WATCHDOG) is your normal process
          priority.  This is the lowest priority your process will assume
          when it is computable.  
      3.  Authorized or default priority is the maximum you may set your
          process to.  You may lower your base priority below the
          authorized value, but you may not raise it higher than the
          authorized value.  
3 state
      1.  CUR - Currently executing.  
      2.  COM - Computable - executing 
      3.  COMO - Computable - outswapped.  
      4.  HIB - Hibernating (waiting for terminal I/O ?) 
      5.  HIBO - Hibernating - outswapped.  
      6.  SUSP - Suspended 
      7.  SUSPO - Suspended - outswapped 
                                     Wait states
      8.  COLPG - Collided page wait 
      9.  PFW - Page fault wait (waiting for memory to be paged in) 
     10.  FPG - Free page wait.  
     11.  CEF - Common event flag wait.  
     12.  LEF - Local event flag wait.  
     13.  LEFO - Local event flag wait - outswapped.  
     14.  MWAIT - Miscellaneous wait state 
