The following works very well for me on Unix server running Solaris.

Example:
    open "|Vtext.tcl selcustacct.sql $cust_acct_num &"

Note: The first line in Vtext.tcl is:
#!/apps/devtools/tcl-8.03/bin/wish -f

Note: File permissions for Vtext.tcl were set with:
chmod 775 Vtext.tcl (rwxrwxr_x)

Vtext.tcl runs the shell script selcustacct.sql and displays
the output in a scrollable text wiget with line wraping set to "no wrap"

Hope this helps.

Ralph





Eric Taylor <[EMAIL PROTECTED]> on 10/20/2000 08:35:28 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:    (bcc: Ralph McCord/CIMG/CVG)
Subject:  Re: [vtcl-user] Returning Control




At 12:09 PM 10/20/00 -0700, you wrote:
>I wrote a little gui that, when I push a button it starts a process, which I
>run in the background. The problem is that the gui goes blank and is
unuseable
>until I kill the process manually that the button started.  How can I set the
>command for the button so that it starts a background process and then
>immediately return control to the gui?
>
>...Mark
>_______________________________________________

Are you using the exec command?

If so, sounds like you need an & at the end of the command run
in the background. This works for me.

for example:

proc {chatu} {{pt 5000} {id xid}} {
     exec wish chat.tcl "$pt" "$id" &
}



Eric

_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user

att1.eml

Reply via email to