Re: Killing a running process
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Killing a running process

From: al-s <stosh259@hotmail.com>
Date: Fri Mar 03 2006 - 20:08:54 CET

|Typically you would use this list and attach it to a button, eg.
| set fd [open "|..."]
| set pids [pid $fd]
| button .b -text {Stop} -command [list stop_processes $pids]

So then the above lines look as they belong to the Run1 proc. I see
that using the button is a great way to implement the stop_processes
and keep things from using globals. What if instead of a button, I
bound it to a Control-c event using:
bind $log <Control-Key-c> {stop_processes $pids}. Would that be able
to go in place of the button comamnd? I'm using Yellow Dog Linux on a
G4 Mac connected to a VME single board computer via ssh on a myrinet
interface. So unix commands apply here.

Thanks again Ralf.
Received on Sun Apr 30 02:22:57 2006