*** What is this? [#oe481973]
This package provides commands for show/kill process on Windows2000/XP.
ps command can get some details such as %cpu, PPID, exe file path, memory etc...

*** License [#o750eabc]
BSD-Style License

*** Source & Binary [#yfe08456]
http://reddog.s35.xrea.com/software/process1.0.zip

*** Command [#k2d7e660]
 ps ?options?
 kill ?pid?

*** ps options [#cb116ea6]
- -exe ~
exefile name
- -path ~
exefile full path (long name)
- -ppid ~
parent process id
- -priority ~
priority base
- -thread ~
thread count
- -ctime ~
created datetime. If we cannot get it, it will be ''0''.
- -ktime ~
kernel time. If we cannot get it, it will be -1.
- -utime ~
user time. If we cannot get it, it will be -1.
- -%cpu ~
Percentage of CPU usage from created time to the present time. If we cannot get it, it will be -1.
- -%cpu msec ~
Percentage of CPU usage in milli seconds. If we cannot get it, it will be -1.
- -%size ~
Percentage of real memory (working set) used.  If we cannot get it, it will be -1.
- -%vsize ~
Percentage of virtual memory (page file) used.  If we cannot get it, it will be -1.
- -size ~
real memory size (byte). If we cannot get it, it will be -1.
- -peaksize ~
real memory peal size (byte). If we cannot get it, it will be -1.
- -vsize ~
virtual memory size (byte). If we cannot get it, it will be -1.
- -peakvsize~
virtual memory peak size (byte). If we cannot get it, it will be -1.
- -pagefault ~
pagefault count. If we cannot get it, it will be -1.
- -user ~
account user name
- -domain ~
account domain name
- -version ~
exe version
- -plainlist ~
output plain list

*** Example1 [#ob241f99]
 package require Process
 # Show Process List
 ps -exe -%cpu -%size
 ps -exe -ppid
 kill 1024
 ...

*** Example2 [#fa342965]
 proc plist {} {
 	puts [format {%4s %-8s  %6s  %6s   %5s %s} \
 			PID USER %CPU %MEM SIZE CMD]
 	foreach {pid user pcpu pmem mem exe} \
 		[ps -user -%cpu -%size -size -exe -plainlist] {
 		if {$pcpu < 0} {set pcpu 0}
 		if {$pmem < 0} {set pmem 0}
 		puts [format {%4d %-8s %6.1f%% %6.1f%% %5dKB %s} \
 			$pid $user $pcpu $pmem [expr $mem/1024] $exe]
 	}
 }
 plist

  PID USER        %CPU    %MEM    SIZE CMD
    0             0.0%    0.0%    -1KB [System Process]
    8             0.0%    0.0%   252KB System
  156 SYSTEM      0.0%    0.1%   436KB SMSS.EXE
  180             0.0%    0.0%    -1KB CSRSS.EXE
  176 SYSTEM      0.0%    0.7%  3728KB WINLOGON.EXE
  228 SYSTEM      0.0%    1.0%  5368KB SERVICES.EXE
  240 SYSTEM      0.0%    0.2%  1056KB LSASS.EXE
  420 SYSTEM      0.0%    0.5%  2600KB svchost.exe
  448 SYSTEM      0.0%    0.6%  3348KB spoolsv.exe
  484 SYSTEM      0.0%    1.0%  5360KB svchost.exe
  512 SYSTEM      0.0%    0.7%  3616KB mdm.exe
  624 SYSTEM      0.0%    0.6%  3064KB NAVAPSVC.EXE
  ...
***Example3 [#z44d4c20]
 package require tablelist
 package require Process
 
 set lvar {}
 
 button .update -text Update -command {
 	set lvar [ps -%cpu 500 -size -exe]
 	catch {.table sortbycolumn [.table sortcolumn] -[.table sortorder]}
 	update
 }
 scrollbar .y -command {.table yview}
 tablelist::tablelist .table -listvariable lvar \
 	-showarrow yes -yscrollcommand {.y set} \
 	-labelcommand tablelist::sortByColumn \
 	-columns {6 PID 10 %CPU 10 Memory 32 Name} -width 70
 .table columnconfigure 0 -align right -sortmode integer
 .table columnconfigure 1 -align right -sortmode real -formatcommand formatPer
 .table columnconfigure 2 -align right -sortmode integer -formatcommand  formatSize
 .table columnconfigure 3 -sortmode ascii
 
 pack .update -side bottom -fill x
 pack .table -side left -expand yes -fill both
 pack .y -side right -fill y
 
 proc formatPer {var} {
 	if {$var < 0} {
 		return {}
 	}
 	return "[format %3.2f $var] %"
 }
 
 proc formatSize {var} {
 	if {$var < 0} {
 		return {}
 	}
 	return "[expr $var / 1024] KB"
 }

#ref(process1.gif,nolink,left)

*** Comment [#p1b8db4e]
- Cool site goodluck :) http://ejysipohoqo.lefora.com/2012/03/02/lolita-nymphets-top-50/ young teen nude lolita  Oh Shit This Is Fucking Nasty! Just how I like it! He tore her asshole to shread and gave her a load inside her asshole. Then watching the cum being licked from her asshole so they can makeout with it, I LOVE IT!  -- [[Izixqpyv]] &new{2012-04-22 (Sun) 03:55:11};
- I like watching TV http://ijanidosonol.lefora.com/2012/03/02/tgp-preteen-lol-pthc/ elweb bbs preteen lolitas  This is okay but we need to see her naked body and see her at least take it in her pussy. Would be good to see her assfucked and jizzed on close up too. Dude has not a lot to be proud of.  -- [[Qfhabojn]] &new{2012-04-22 (Sun) 03:55:15};
- I'd like to transfer some money to this account http://hysaadibosa.lefora.com/2012/03/02/young-kids-models-lolita/ free lolita pteen pics  I love this guy! He always looks so passionate. And he be fuckin the shit out of those ladies. I would love me some of him!  -- [[Pcicjmza]] &new{2012-04-22 (Sun) 03:55:16};
- Through friends http://ecetausua.lefora.com/2012/03/02/best-lol-bbs-links/ preteen loli top site  if i saw this on tv i would have called my girlfriend or my boyfriend and we would have fucked all night  -- [[Sywvoyqf]] &new{2012-04-22 (Sun) 03:55:17};
- Will I have to work shifts? http://hysaadibosa.lefora.com/2012/03/02/young-kids-models-lolita/ preteen lolita dark portal  THat girl is a fucking CHAMP!!! Holla! And Erik knew what he was doing, getting the nasty ass frenchman to cumming in her second! LOL! She is such a good girl!  -- [[Ntuplvnd]] &new{2012-04-22 (Sun) 03:55:19};
- Whereabouts are you from? http://soyciai.lefora.com/2012/03/02/teen-lolita-7y-o/ lolitas young sluts angel  this video is soo sexy but i cant get over the black cock that is the size of my arm to the right  -- [[Kstyqsfe]] &new{2012-04-22 (Sun) 05:20:49};
- What qualifications have you got? http://ohyhahokaciu.lefora.com/2012/03/02/pics-of-underaged-lolitas/ lolitas nymphets hard paysites  thats a crazy ass vid. its like this is what happens when you drunk off your ass and decide I want to be a porn star. Thanks we enjoyed.  -- [[Umashxse]] &new{2012-04-22 (Sun) 05:20:52};
- How much is a Second Class stamp? http://ohyhahokaciu.lefora.com/2012/03/02/pics-of-underaged-lolitas/ lolitas nymphets chill ranchi  i love it how such a hot innocent looking girl, is the fucking biggest ass slut around, i would thrash her  -- [[Eehtkevs]] &new{2012-04-22 (Sun) 05:20:55};
- It's funny goodluck http://aguatipebi.lefora.com/2012/03/02/lolitas-model-welcome-you/ free lolitas bbs tgp  WAAAAAAYYYYYYYYYYY too much missionary...they should have switched it up....plus dude was really annoying...girl was hot and all...but it coulda been A LOT hotter  -- [[Vhsotchq]] &new{2012-04-22 (Sun) 05:20:57};
- Which university are you at? http://nehenimyedij.lefora.com/2012/03/02/lolita-nude-preteen-little/ cute tiny lolita pics  dude this is the most fucked movie i have ever seen i mean look at his dick and sack and her tits WTF  -- [[Ratafijz]] &new{2012-04-22 (Sun) 05:20:59};
- It's funny goodluck http://ikefaepoe.lefora.com/2012/03/02/naked-young-french-lolitas/ young fresh nude lolitas  This is a hot girl but a terrible video. I could have got a better view of the girl looking out of my window if I had known when the filming was taken place.  -- [[Vmlpzrit]] &new{2012-04-22 (Sun) 06:22:23};
- What part of  do you come from? http://eqafunymogo.lefora.com/2012/03/02/free-preteen-lolita-paysites/ russian nude lolita boys  Yes! Two of my favorite dirty little blondes, Sidnee and Aubrey! Too bad Aubrey got that horrible boob job, but still so cute!  -- [[Sikfjmhf]] &new{2012-04-22 (Sun) 06:22:27};
- Could I order a new chequebook, please? http://ikefaepoe.lefora.com/2012/03/02/naked-young-french-lolitas/ lista pornostar relatos lolitas  julia bond is crazy hot!!! lovly body and realy knows how to ride... and now analsex with here!!! grrrrrrr wish i fucked here...!  -- [[Jwptiwyx]] &new{2012-04-22 (Sun) 06:22:30};
- I'll call back later http://gefycoekih.lefora.com/2012/03/02/nude-lolas-nasty-pics/ illegal rape pic lolita  Clicking Favorite now!!  This is a hot video, love the couch splits scene.  This chick is hot and that cock is hot too.  -- [[Qptxbqic]] &new{2012-04-22 (Sun) 06:22:34};
- I've just started at  http://yjahujiideki.lefora.com/2012/03/02/3d-young-teen-loli/ little bbs cp lolita  Her name is Musa, search that and you'll get more vids of her, she's very hot, i like a natural girl!  -- [[Aatkrzvt]] &new{2012-04-22 (Sun) 06:22:36};

#comment
----
[[CategoryTclTk]] [[CategorySoft]]
[[Tclでプロセス管理]]

HTML convert time: 0.102 sec.