home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / sosutl11.zip / ps.man < prev    next >
Text File  |  1993-08-20  |  2KB  |  60 lines

  1. ps
  2.  
  3. Description
  4.  
  5.     ps--display processes with their process id's (PID), parent process
  6.     id's (PPID), and session id's (SID).
  7.  
  8. Usage
  9.  
  10.     [D:\] ps
  11.  
  12.     ps output looks like this:
  13.  
  14.         PID  PPID   SID  PROCESS
  15.           3     1     1  d:\os2\pmshell.exe
  16.           7     3    18  d:\bin\pc2\pc2.exe
  17.           6     3    17  d:\bin\xfeel.exe
  18.           5     3    16  d:\os2\pmshell.exe
  19.           4     3     0  d:\os2\system\harderr.exe
  20.  
  21.     All the numeric values are decimals. If you want hexadecimals, just
  22.     remove all calls to Format() and X2D() in lines 24--26 of `ps.cmd';
  23.     ie. change
  24.  
  25.         pid = Format(X2D(Word(line, 1)), 4)
  26.  
  27.     to
  28.  
  29.         pid = Word(line, 1)
  30.  
  31.     You may have to reformat the header line to get the columns right.
  32.  
  33. System requirements
  34.  
  35.     ps is a REXX program and requires you to have REXX installed. Also,
  36.     ps calls PSTAT to obtain the information, and only re-formats the
  37.     output to a more readable and at least shorter format. PSTAT is part
  38.     of the OS/2 Diagnostic Tools installation options; if you don't have
  39.     the file `pstat.exe' in your \OS2 directory, use the Selective
  40.     Install object in your System folder to install it. REXX can be
  41.     installed in the same way, in the unlikely case you haven't it
  42.     installed already.
  43.  
  44.     `rxqueue.exe' should also be found in the \OS2 directory. It is part
  45.     of the REXX installation option.
  46.  
  47. Notes
  48.  
  49.     It took a long while before I found out how to pipe output to REXX
  50.     routines inside a REXX program. Maybe there are even better altern-
  51.     atives than the `rxqueue' method this program uses, but none of them
  52.     is documented in the standard OS/2 package. I really wish IBM would
  53.     some day give a full, decent documentation FREE with the OS/2
  54.     system...
  55.  
  56. Version
  57.  
  58.     ps.cmd v4.0
  59.     Copyright (C) SuperOscar Softwares, Tommi Nieminen 1993
  60.