To exit the app that started the top program:
button $base.but22 \
-background #00aed2 -borderwidth 5 \
-command {exit} -text {Exit}
To kill the top program:
button $base.but23 \
-background #00aed2 -borderwidth 5 \
-command {exec killall -9 top} -text {Kill Top}
If I understand your request correctly.
Dave
----- Original Message -----
From: "Mau, Lawrence" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 2:29 PM
Subject: [vtcl-user] exit on a unix system.
> 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.
>
> thanks
>
> button $base.but21 \
> -background #00aed2 -borderwidth 5 \
> -command {exec /usr/bin/X11/xterm -e top &} -text {Top Utility Tool}
> _______________________________________________
> vtcl-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/vtcl-user
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user