home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / yap.zip / yap.doc next >
Text File  |  1995-06-16  |  2KB  |  68 lines

  1. Yap displays currently running OS/2 processes and a host of information
  2. about them. There are a myriad of options and if you like, you can save
  3. your favorite options permanently into your own customized copy of yap.
  4.  
  5. USAGE: yap [processname] [options] where options are
  6.  
  7. +thread - show thread information
  8. radix=<10 or 16>
  9. +color - use ANSI color
  10. +kill - kill processes (asks first)
  11. -query - don't ask before killing
  12.  
  13. [processname] will display any process which contains this string.
  14.  
  15. Each column of data that YAP displays is called a field. You can specify
  16. which fields you want displayed. You can sort the display by any of the
  17. fields and you may specify particular values and display only processes
  18. that fit those values.
  19.  
  20. The fields are
  21.  
  22. pid      Process id
  23. ppid     Parent pid
  24. ty       Process type
  25. st       Process status
  26. ss       Session
  27. time     CPU time
  28. utime    User time
  29. pri      Priority of highest priority thread
  30.  
  31. +<field> - turns on display of a field
  32. -<field> - suppresses display of a field
  33. sort=<field> - to sort on a particular field
  34. <field><operator><value>
  35.  
  36. Where operators are
  37. }     greater than or equal to
  38. {     less than or equal to
  39. =     equal to
  40. !     not equal to
  41.  
  42. CUSTOMIZING YAP
  43.  
  44. save=<exe file name> 
  45. Save current settings to custom version of yap.  Note you cannot save
  46. yap.exe back to itself. You must make up your own new name. OS/2 will
  47. not permit a file that is open for execution (YAP.EXE) to be written to.
  48.  
  49. EXAMPLES 
  50.  
  51. yap ppid=10 os2 
  52. Show all processes with parent pid equal to 10 (ppid=10) and which
  53. contain os2 as part of their name.
  54.  
  55. yap sort=time 
  56. Show all processes and sort them in order of CPU utilization
  57. (sort=time)
  58.  
  59. yap +kill pri}300 -query save=KILL.EXE 
  60. Kill processes (+kill) running at priority 300 or above (pri}300) and
  61. don't ask before killing (-query). Save these options into a file
  62. called KILL.EXE (save=KILL.EXE). Now KILL.EXE is its own utility that
  63. when executed kills processes running at priority 300 or above.
  64.  
  65. yap PM*.EXE +thread +color
  66. List all processes that fit the name PM*.EXE, show their individual
  67. threads (+thread) and use color in the display (+color)
  68.