AminetAminet
Search:
78337 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/ktm.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Kool Task Manipulator
Author:megacz at usa.com
Uploader:megacz usa com
Type:util/cli
Version:0.3
Replaces:util/cli/ktm.lha
Requires:see notes
Architecture:m68k-amigaos; generic
Date:2008-08-01
Download:http://aminet.net/util/cli/ktm.lha - View contents
Readme:http://aminet.net/util/cli/ktm.readme
Downloads:484
ktm-0.3
---------

---

 Kool Task Manipulator =D

 This proggy allows to change priority, signal, freeze &  activate
 any task or process without a hassle with guis.  It accepts exact
 or case insensitive and patternal name, just to be as handy as
 possible. Further more, you can do all those things massively to a
 group of tasks or go nuts and do that with every task.

 I tried to make the output look like in 'Scout'.
  
---

NEWS:

     [31-Jul-2008]   0.3  Program can be made resident now.
     [31-May-2008]   0.2  Added searching by address($xxxxxxxx)

---

NOTES:

Requires 68000+, OS 2.04+, 8192+ bytes of free memory

Returns 0 if nothing was done and 5 upon successful operation.

When used in scripts avoid "task,task,..." syntax because there is no
way to distinguish between successful and unsuccessful. Only one call
per task can tell what happened.

Quite fast(also because it does not perform sorting).

This proggy can also display ports.

---

USAGE:

 *** template: ktm <taskname/a>[,...] [argument] [ic/s] [mass/s]\n

     <taskname/a>  -  name of a task or process, you can specify
                      exact "taskname" or "[cliname]" or partial 
                      name together with [ic/s] or "#?" for all
                      or task address $xxxxxxxx.

       [argument]  -  if specified, found task will receive that
                      argument if not only list will be dumped.
                      [argument] can be one of following:
                      
                      -127<>127  -  priority
                      $xxxxxxxx  -  hex signal
                        c/d/e/f  -  standard signals
                              s  -  self signal
                              p  -  search in ports
                         freeze  -  freezes task(s)
                       activate  -  activates task(s)

           [ic/s]  -  ic - ignore case and do patternal search.

         [mass/s]  -  if specified, each found task will be dumped
                      and/or will receive new arg, if not specified 
                      only first found entry will be changed/displ.

 *** indicators:

                d  -  dump
                p  -  priority
                s  -  signal
                f  -  freeze
                a  -  activate    

---                                                            

EXAMPLES:

   ; you want to see the list
   ktm #?

   ; you want only background clis to be listed
   ktm "background cli" ic mass

   ; you want everything but the clis
   ktm -1 mass

   ; you want all clis first and then the rest
   ktm "background cli,shell process,-1" ic mass
                     
   ; you want process 3 to be shown
   ktm 3

   ; suppose there is plenty "wait" commands running and you want
   ; them not to be handled too often, but you dont know the case
   ; of each process.
   ktm [wait] -120 ic mass

    p $01E71578 process -120  49 wait dos     $00000100    3.770  Background CLI
[WAIt]     p $01EA8678 process -120  50 wait dos     $00000100    3.770 
Background CLI [WAit]     p $01EAD578 process -120  51 wait dos     $00000100   
3.770  Background CLI [Wait]     p $01EA28D8 process -120  48 wait dos    
$00000100    3.770  Background CLI [WAIT]     p $01E866B8 process -120  45 wait
dos     $00000100    3.770  Background CLI [waiT]     p $012B2180 process -120  
3 wait dos     $00000100    4.794  Background CLI [wait]     p $0138F9A0 process
-120   6 wait dos     $00000100    4.794  Background CLI [wait]     p $01E87430
process -120  46 wait dos     $00000100    3.770  Background CLI [waIT]     p
$01EA0B58 process -120  47 wait dos     $00000100    3.770  Background CLI
[wAIT]  
   ; suppose you have slow cpu and you use "scsi.device" or "IDEFIX" where    ;
these tasks have rather high priority and when something is accessing    ; the
drive everything else stops for a while.
   ktm IDEFIX,scsi.device 0

   ; freeze the smelly who is doing messy things in the os afap
   ktm smelly freeze ic

   ; break bunch of different tasks not knowing their exact case
   ; but knowing that they work as shell processes - this way other
   ; tasks with matching patterns wont be terminated.
   ktm [aws],[inetd],[named] c ic

   ; set new priority of two different groups of processes
   ktm arexx,[rx] -1 ic mass

   ; find a task by its address
   ktm $01EAD578

---
megacz at usa.com


Contents of util/cli/ktm.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 2649    4352  60.9% -lh5- f8f7 Jul 31 16:39 ktm-0.3/ktm
[generic]                 3845   15530  24.8% -lh5- 731e Jul 31 16:31 ktm-0.3/ktm.c
[generic]                 1709    4382  39.0% -lh5- 0981 Jul 31 16:38 ktm-0.3/README.amiga
[generic]                  252     415  60.7% -lh5- 7f7f May 31 13:32 ktm-0.3/SMakefile
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files    8455   24679  34.3%            Aug  1 18:19

Aminet © 1992-2008 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>