Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > launch simple perl script from browser

Reply
Thread Tools

launch simple perl script from browser

 
 
kenny
Guest
Posts: n/a
 
      01-15-2007
hi folks,

i have a very basic question:

how can i launch my perl script in the browser via address bar?

I used a shell with the command "perl x.pl" and it worked. the paths
seem to be set all right.... thx in advance....


yours, kenny ajram

 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      01-16-2007
kenny <> wrote:

> how can i launch my perl script in the browser



You can't.


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
 
 
 
usenet@DavidFilmer.com
Guest
Posts: n/a
 
      01-16-2007
kenny wrote:
> how can i launch my perl script in the browser via address bar?


file://c:\path\to\x.pl


--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)

 
Reply With Quote
 
John Bokma
Guest
Posts: n/a
 
      01-16-2007
Tad McClellan <> wrote:

> kenny <> wrote:
>
>> how can i launch my perl script in the browser

>
>
> You can't.


But I can

--
John Experienced Perl programmer: http://castleamber.com/

Perl help, tutorials, and examples: http://johnbokma.com/perl/
 
Reply With Quote
 
krakle@visto.com
Guest
Posts: n/a
 
      01-16-2007


On Jan 15, 7:11 pm, Tad McClellan <t...@augustmail.com> wrote:
> kenny <kenny1...@web.de> wrote:
> > how can i launch my perl script in the browser

>
>You can't.
>


You can't? But you can... Here's a tutorial that explains how you can
take advantage of your Web Browser so you can use HTML GUIs. It also
tells you how to you can bundle up everything in a nice EXE...

http://simon-cozens.org/programmer/articles/webgui.pod

 
Reply With Quote
 
usenet@DavidFilmer.com
Guest
Posts: n/a
 
      01-16-2007
Bob Walton wrote:

> Well, one way would be to install a web server on your system. Modify
> the Perl script to function as a CGI program.


A webserver is not necessary if you want to run the script on the same
machine that it resides on. You may "run" anything on the localhost
with the file://whatever syntax in the browser address bar.

Of course, it won't display output to the browser... but the program
WILL run.

--
David Filmer (http://DavidFilmer.com)

 
Reply With Quote
 
Martijn Lievaart
Guest
Posts: n/a
 
      01-16-2007
On Tue, 16 Jan 2007 00:22:16 -0800, usenet wrote:

> Bob Walton wrote:
>
>> Well, one way would be to install a web server on your system. Modify
>> the Perl script to function as a CGI program.

>
> A webserver is not necessary if you want to run the script on the same
> machine that it resides on. You may "run" anything on the localhost
> with the file://whatever syntax in the browser address bar.
>
> Of course, it won't display output to the browser... but the program
> WILL run.


No it won't.

+------------------------------------------------------------------+
| You have chosen to open |
| |
| test.pl |
| |
| which is a: Perl script |
| from: /home/martijn |
| |
| +- What should firefox do with this file? -------------------+ |
| | +---------------------------------------+ | |
| | (*) Open with |OpenOffice.org Writer (default) |x| | |
| | +---------------------------------------+ | |
| | ( ) Save to Disk | |
| | | |
| | [ ] Do this automatically for files like this from now on. | |
| +------------------------------------------------------------+ |
| [ X Cancel ] [ V OK ] |
+------------------------------------------------------------------+

M4
--
Redundancy is a great way to introduce more single points of failure.

 
Reply With Quote
 
kenny
Guest
Posts: n/a
 
      01-22-2007
thanks for your help everybody! i used something like you suggested but
the browser shows me the source code of the .pl
how can i run it. i thought i would use a typically configured web
server??






>
> http://localhost/x.pl
>
> HTH
>
> BTW, if you need a free web server, I've got a 51-line Perl one.
> --
> Bob Walton
> Email: http://bwalton.com/cgi-bin/emailbob.pl


 
Reply With Quote
 
kenny
Guest
Posts: n/a
 
      01-22-2007
thanks for your help everybody! i used something like you suggested but
the browser shows me the source code of the .pl
how can i run it? i thought i would use a typically configured web
server??






>
> http://localhost/x.pl
>
> HTH
>
> BTW, if you need a free web server, I've got a 51-line Perl one.
> --
> Bob Walton
> Email: http://bwalton.com/cgi-bin/emailbob.pl


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lAUNCH perl script from java diego_83bis Java 0 12-22-2008 10:37 AM
Cannot launch simple applications (notepad, java) using Apache and PERL(CGI) JDS Perl 4 11-11-2008 08:50 PM
Cannot launch simple applications (notepad, java) using Apache and PERL(CGI) JDS Perl Misc 3 05-24-2004 06:33 PM
Launch popup for file load from perl script Yves PEYSSON Perl Misc 2 02-19-2004 12:32 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57