Sponsored Content
Top Forums Shell Programming and Scripting view my TCL script on the Internet explorer Post 44176 by cbkihong on Monday 1st of December 2003 08:49:40 PM
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"
 

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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. 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

6. 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

7. 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
Web::Simple::Deployment(3pm)				User Contributed Perl Documentation			      Web::Simple::Deployment(3pm)

NAME
Web::Simple::Deployment - various deployment options DESCRIPTION
This file documents common deployment methods for Web::Simple. If you feel one is missing, please ask in the IRC channel and we'll work with you to add it. CGI
The most basic deployment option is as a CGI script loading and running your Web::Simple-module: #!/usr/bin/env perl use Your::Web::Simple::App; Your::Web::Simple::App->run_if_script; Save that as script.cgi and your web server will handle it correctly. Plack-Server This works in with exactly the same code as CGI deployment. However instead of letting your web server load script.cgi, you run this on the command line: plackup script.cgi Self-contained CGI Sometimes your app is so small that you have only one or two tiny classes that you want to run as a CGI script. Web::Simple offers a helpful mechanism to achieve that. #!/usr/bin/env perl use Web::Simple 'HelloWorld'; # enables strictures and warnings for the file # additionally, HelloWorld is upgraded to a # Web::Simple application { package HelloWorld; sub dispatch_request { sub (GET) { [ 200, [ 'Content-type', 'text/plain' ], [ 'Hello world! It is a fine ' . HelloWorld::Helper->day ] ] }, sub () { [ 405, [ 'Content-type', 'text/plain' ], [ 'Method not allowed' ] ] } } } { package HelloWorld::Helper; use DateTime; sub day { return DateTime->now->day_name; } } HelloWorld->run_if_script; AUTHORS
See Web::Simple for authors. COPYRIGHT AND LICENSE
See Web::Simple for the copyright and license. perl v5.14.2 2012-05-07 Web::Simple::Deployment(3pm)
All times are GMT -4. The time now is 01:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy