Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I run a TCL script via an HTML button

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am trying to make an html button execute a tcl program thru my intranet on NT. If I double click the tcl file it runs good, but how do I define a button to do my execution?

Thank you,
Dale Fry
 
I think this is really a hatemail question rather than Tcl. However you get a button to perform a shell-like action in HTML, the execution it invokes is really the Tcl or Tk shell (Tcl83, say). It depends whether your host machine is Windows or UNIX (or Mac I suppose but then I'm lost). If it's Windows, the execution syntax is something like &quot;tclsh83.exe <script name>&quot;. If it's UNIX, then the script includes &quot;#!<path><app>&quot; and must be globally executable (<path> is like /usr/local/bin and <app> is like tclsh8.3), then the execution is the script itself. Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top