![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: Killing a running process
From: Glenn Jackman <xx087@freenet.carleton.ca>
Date: Fri Mar 03 2006 - 21:17:39 CET
At 2006-03-03 02:45PM, al-s <stosh259@hotmail.com> wrote:
useless use of cat. you want
> $log insert end $fd\n
Don't use braces here (ref: http://wiki.tcl.tk/9330) -- in that case,
bind $log <Control-c> [list kill-proc $pids]
As an aside, I've found that I have to bind both lower case c and upper
[...]
That won't work with multiple pids: Suppose $pids is {1 2 3 4}. The
proc kill-proc {pids {signal TERM}} {
-- Glenn Jackman Ulterior DesignerReceived on Sun Apr 30 02:23:05 2006 |