You might give
button .1 -command {exec /usr/bin/X11/xterm -ls -e vi /etc/passwd}
(or whereever your xterm is installed) a try.
Regards,
Ricki
>----------
>Von: Phillip Mau[SMTP:[EMAIL PROTECTED]]
>Gesendet: Freitag, 24. Oktober 1997 12:57
>An: [EMAIL PROTECTED]
>Betreff: [vtcl] Getting vi into tcl window
>
>
>I am on a Sparc platform (Solaris 2.6) and managed to come up with
>a way to throw up a scroll-bar tcl windows showing the /etc/passwd.
>That is fine. What I am trying to do is get a tcl window to pop up
>with a pre-determined file (passwd) and vi to come up with the push of
>a button.
>I was wondering how I might accomplish that. Below is the -command
>that opens up the other tcl file, currently what it opens is the
>scroll-bar tcl window. Could someone give me a pointer on this?
>
>button $base.but18 \
> -command {exec /usr/local/admin/tclscripts/test4} -padx 11 -pady
>4 \
>
>And then, it brings up test4 below
>
>}
>set t [ScrolledText .f 80 16]
>set in [open /etc/aliases]
>$t insert end [read $in]
>close $in
>
>
>
>--
>Phillip Mau R&D System Analyst
>Chiron Diagnostics, Medfield, MA
>(508) 359.3696 Fax-(508)359.3955
>[EMAIL PROTECTED]
>
>---------------------------------------------------------------------------
>To unsubscribe from the Visual Tcl mailing list, please send a message
>to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
>message body (where [EMAIL PROTECTED] is your e-mail address).
>
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).