About
Docs
Files
Support
Index

Essentials
AutoDocs
Library functions
Cooperate
Process mastering
Debug
Own debugging kit
FGE
Smart modeid pick
Loader
Shared lib. loader
Macros
Helper macros
Structs
All the structures
Logs
Library changelogs
Tools
Progs baked inside

Tools
amiscreen0.3
ansifilter0.1
auto2guide0.1
ccfilter0.1
chipset0.1
cputype0.1
device640.1
dupfilter0.1
expandlogs0.1
findsm0.2
fmpp0.1
fsmount0.1
genanim0.3
gensymtab0.1
hashlab0.4
ktm0.6
linkpoint0.1
logo2ilbm0.1
lpradio0.1
lzwpack0.1
minism0.2
mkheader0.1
modeidctrl0.1
mss0.6
multisum0.3
newterm0.2
numconv0.1
palhack1.1
patmat0.1
pfr0.2
playamitape0.1
qdbflags0.1
qfill0.1
resmodinit0.2
sadctrl0.2
saveassign0.1
setanim0.2
systime0.1
tokendump0.1
uassign0.1
viewlogo0.1
waitback0.4
wrapmount0.1



K
T
M

ktm-0.6
--------

---

Quick and handy task/process manipulation may be very important thing under
some circumstances. Such as when you did run something at high priority and
it makes your OS almost unusable. This is where 'ktm' comes in and enforces
the law ;-) . Kool Task Manipulator  is of  course  more than just priority
setter. It can also signal tasks, freeze and activate them in a safe manner
and is a great source of information(output looks like in 'Scout').

---

NEWS:

   [08-Mar-2014]   0.6   * Priorities  could not be set  due to wrong order
                           of conditionals. Fixed.



   [21-Mar-2011]   0.5   * Totally enhanced, 'qdev'  assisted version which
                           is especially safe on task freezing.

                         * Removed  'Status'  command  emulation completly!



   [09-Mar-2009]   0.4   * Smaller, better, faster.



   [31-Jul-2008]   0.3   * Program can be made resident now.



   [31-May-2008]   0.2   * Added searching by address($xxxxxxxx).

---

NOTES:

[*]
Requires 68020(no FPU)+,  OS2.04(theoretically)+, 32+ kilos of free memory.

[*]
Each entry has its own indicator  character. What they mean is: 'd' - dump,
'p' - priority, 's' - signal, 'f' - frozen, 'a' - active.    

[*]
When  used  in scripts great care should be taken on 'task,task,...' syntax
because  there  is  no  way to tell if all separate tasks did complete with
some action. Only one call per task makes the result defined(RC).

[*]
Proggy  is  especially useful  when made resident so actions can take place
immediately even when OS is very busy.

---

HELP:

   > ktm ?

     COM=TASK/A,ARG=OPTS,CS=CASE/S,IC=ICHAR/S,ALL=MASS/S,P=PORTS/K



   COM=TASK/A  -  Comma separated task/proc. or  CLI(square bracket braced)
                  names(standard patterns allowed) or address(4097 onwards)
                  or CLI numbers(1 to 4096). Negative  integers will cause:
                  ;
                  -1  -  Inclusion  of  all  tasks  and  non-CLI  processes
                  -2  -  Inclusion   of        all        tasks        only
                  -3  -  Inclusion    of  all    non-CLI   processes   only
                  -4  -  Inclusion     of   all   CLI       processes  only

   ARG=OPTS    -  Action to  be  performed. Currently  defined actions are:
                  ;
                  -128<>127    -  Priority   changing(from   -128  to  127)
                  0xhhhhhhhh   -  Custom signal(expressed as a hexadecimal)
                  C,D,E,F,S    -  Standard  signals(S means current signal)
                  FREEZE       -  Freeze task(s)  who misbehave(quite safe)
                  ACTIVATE     -  Activate    previously   frozen   task(s) 

   CS=CASE/S   -  Turn on case sensitivity. By  default case has no matter.

   IC=ICHAR/S  -  Perform   intercharacter  matching  instead  of  standard
                  name comparison.

   ALL=MASS/S  -  Affect  all  found  tasks of each comma separated source.
                  By  default  only the very first entry will be displayed.

   P=PORTS/K   -  Seek in ports(actions will be forwarded to a task) where:
                  ;
                  P  -  Dump just the  port details(actions have no effect)
                  O  -  Dump  port  details  and  try  to locate  its owner

---

USAGE:

   ; Dump a list of all running tasks in the system
   ktm #?

   ; Dump a list of all CLI processes
   ktm -4 all

   ; Show CLI process number 3
   ktm 3

   ; Terminate 'wait' command as launched from shell
   ktm [wait] c

   ; Set new priority to some disk device task(s)
   ktm DF0,trackdisk.device,IDEFIX,scsi.device 0

   ; Set new pri. to two different process groups
   ktm ARexx,[rx] -1 all

   ; Halt some '<smelly>' who is trashing the memory
   ktm <smelly> freeze

   ; Kill all 'multiview's by getting addresses from
   ; ports
   ktm MULTIVIEW.#? c cs p o

---
megacz
    


No more fear cus pure HTML is here!
Copyright (C) 2013-2014 by Burnt Chip Dominators