On Don, 31 Aug 2000, you wrote:
> I can startup unix commands like the one below, but would like
> an exit button or command for each as well.
> Could someone give me a pointer.

"exec" returns the numeric process id of the command it started.
You can kill it without side effects by "kill <proc_id>"

start:
     -command {set top_id [exec /usr/bin/X11/xterm -e top &]}
stop:
     -command {exec kill $top_id}

If you dont have the kill programm you can use bash:
     -command {exec /bin/sh -c kill $top_id}

You might want to check if the process is still running before
running the kill command; or you just "catch" the stop button
command.

-- 
Josua Dietze
---------
No sigfile
No ideas
No money ...
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user

Reply via email to