On Mon, Mar 22, 2010 at 10:21 AM, Binh Hoang <[email protected]> wrote:
> I have a following program:
> #!/usr/local/bin/wish
>
> button .hello -text Hello \
>
>    -command {puts stdout "Hello, World!"}
>
> pack .hello -padx 20 -pady 10
>
> How to know to compile this program?

if you have a file in your current directory called my.tcl containing
those lines:
#!/usr/local/bin/wish
button .hello -text Hello \
    -command {puts stdout "Hello, World!"}
pack .hello -padx 20 -pady 10

you can make it executable ("chmod +x my.tcl") and call it by typing "./my.tcl"

You can also call the wish interpreter ("/usr/local/bin/wish" or simply "wish")
and type the commands in by hand at the prompt, to see them in action.

Finally, you can talk to a running wish process from another wish
window, by using the 'send' command.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to