view my TCL script on the Internet explorer


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting view my TCL script on the Internet explorer
# 1  
Old 11-30-2003
view my TCL script on the Internet explorer

Hello
I wrote some small TCL script which writes some HTML commands.
when I invoke it through the IE I get a blank screen
what should I do to watch my results on MS IE?
can you point me to a simple ready made script so I can learn from it?
I am working on a solaris system
thanks
# 2  
Old 11-30-2003
you could do it with a SSI, but enabling SSI executables is a bad idea.. you would do it like this:

in the html page to be displayed, you put this in the body:

<!--#exec cmd="/path/to/your/script" -->

the output of your script would be displayed when you view the html page that has the SSI in it. this of course requires that apache is set up correctly to enable SSIs and all that.

you could also run your script maually, or via cron and have it dump its output to an html file which is then viewed by you.
# 3  
Old 12-01-2003
In Apache you should add .tcl to the list of CGI program extensions, and make sure mod_cgi is enabled in your Apache (if your server can serve Perl CGI scripts you should be okay). Give the executable chmod to the script also.

For example, I wrote the following test script and it worked on my configuration:

#!/usr/bin/tclsh

puts "Content-Type: text/html\n"
puts "<html><body>Hello World!</body></html>\n"
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

Internet Explorer EOL

Hard to imagine that in the two decades of its existence this product once ruled supreme, but the news is finally there: RIP Internet Explorer: Twitter mourns and mocks death of Microsoft (0 Replies)
Discussion started by: figaro
0 Replies

2. Solaris

Internet Explorer for Solaris and HPUX

Any idea where can I download IE for UNIX platform? Microsoft does not support the downloading anymore? (5 Replies)
Discussion started by: jennifer
5 Replies

3. Solaris

how to view explorer output in solaris

Hi, I want to run pkg something called SUNWexplorer and find the output. Where i can find the pkg? (1 Reply)
Discussion started by: Renjesh
1 Replies

4. Windows & DOS: Issues & Discussions

Internet Explorer flashes off

Hi, What must have happen to my internet explorer that flashes whenever it want to load. The page after trying to load would just logout. I have tried to reset most of the setting on the properties but all to no avail. Can someone pls assist. Thanx (1 Reply)
Discussion started by: kayode
1 Replies

5. IP Networking

Internet Explorer Solaris

Downloaded and installed, when I try to execute iexplorer it responds with "iexplorer: not found", but it is right there in the directory I am in and I im logged in as root. any ideas? (3 Replies)
Discussion started by: cluettr
3 Replies

6. UNIX for Dummies Questions & Answers

internet explorer for hp-ux

Hello, i'm running a hp-ux workstation model 715 / 100 with hp-ux version 11.11 i need a microsoft internet explorer for this workstation to make some tests. does anyone know where i can cat a internet explorer 4.01 for my workstation? Thank all for help! ;-) (3 Replies)
Discussion started by: ortsvorsteher
3 Replies

7. UNIX for Dummies Questions & Answers

May I try Internet Explorer on my SCO?

I Have SCO OpenServer 5 with Netscape Navigator, but I'll like to try Internet Explorer to see how it workd on Unix. I don't know where I can find (If there is) a version compatible with SCO OpenServer! (2 Replies)
Discussion started by: SuPeRbYtE
2 Replies
Login or Register to Ask a Question