Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Running perl from a browser without a web server?

Reply
Thread Tools

Running perl from a browser without a web server?

 
 
sstark
Guest
Posts: n/a
 
      08-22-2005
Hi, I'd like to run a perl script (using CGI.pm) from a web browser but
without using a web server. Is there any way to do that?

thanks
Scott

 
Reply With Quote
 
 
 
 
ChrisO
Guest
Posts: n/a
 
      08-22-2005
sstark wrote:
> Hi, I'd like to run a perl script (using CGI.pm) from a web browser but
> without using a web server. Is there any way to do that?
>


No.

-ceo
 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      08-22-2005
sstark wrote:
> Hi, I'd like to run a perl script (using CGI.pm) from a web browser but
> without using a web server. Is there any way to do that?


Why do you ask? If it's because you find it difficult to install a
server, try this bundle: http://www.indigostar.com/indigoperl.htm

It gives you Perl and Apache with CGI, mod_perl and PHP.

Can't be easier than that.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
 
Reply With Quote
 
xhoster@gmail.com
Guest
Posts: n/a
 
      08-23-2005
"sstark" <> wrote:
> Hi, I'd like to run a perl script (using CGI.pm) from a web browser but
> without using a web server. Is there any way to do that?


HTTP:aemon

Xho

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
 
Reply With Quote
 
Dave Weaver
Guest
Posts: n/a
 
      08-23-2005
On 22 Aug 2005 15:08:36 -0700, sstark <> wrote:
> Hi, I'd like to run a perl script (using CGI.pm) from a web browser but
> without using a web server. Is there any way to do that?


I think you misunderstand how things work.

Web browswers don't run Perl. Web browsers talk to web servers.
Web servers can talk to programs written in Perl (or any other
langauge) using the CGI.

If you wish to write a CGI program you will need to have a web server
for it to communicate with.

There are freely available bundles that contain Perl & a web server
that you can easily install on your own PC, for example IndigoPerl
from http://www.indigostar.com/


 
Reply With Quote
 
Brian Wakem
Guest
Posts: n/a
 
      08-23-2005
sstark wrote:

> Hi, I'd like to run a perl script (using CGI.pm) from a web browser but
> without using a web server. Is there any way to do that?
>
> thanks
> Scott



Konqueror 3.4 can apparently, see
http://www.linux-magazine.com/issue/...3.4_Tricks.pdf (table 4)

Though I can't find any documentation on it and I still use 3.3 so I can't
help.


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
 
Reply With Quote
 
Eric Bohlman
Guest
Posts: n/a
 
      08-23-2005
"sstark" <> wrote in news:1124748515.933748.10230
@g14g2000cwa.googlegroups.com:

> Hi, I'd like to run a perl script (using CGI.pm) from a web browser but
> without using a web server. Is there any way to do that?


You'd have to build a "mini web server" into the program itself, so that
when you start it (you'd have to do *that* using you're OS's program-start
mechanism), it starts listening on a local port, which you in turn point
your browser at. As Xho pointed out, you could use HTTP:aemon to build
it, though it would still involve a bit of work. IIRC,
Net::HTTP::Server::Simple does a bit of the work for you.
 
Reply With Quote
 
sstark
Guest
Posts: n/a
 
      08-23-2005
Hi all, thanks for the many replies. To clarify:

Yes I could easily install Apache; however for security reasons my
employer forbids it, or at least requires a lot of security precautions
that I'd rather not deal with. I'm looking at ways to make the script a
standalone that I can give to users so they can run it on their own
machines without installing a server.

Perhaps the mini web server would do the trick, I'll look into that.

What I'm really looking for, though, is simply a wysiwyg interface that
allows users to click on choices and enter text into fields. Perhaps
the browser/CGI solution isn't the only way. I seem to recall seeing
some kind of Perl graphical interface a few years ago, some kind of
"widget" thingie. Anybody know what I'm talking about and if there's a
way to accomplish what I want?

thanks,
Scott

 
Reply With Quote
 
xhoster@gmail.com
Guest
Posts: n/a
 
      08-23-2005
Eric Bohlman <> wrote:
> "sstark" <> wrote in news:1124748515.933748.10230
> @g14g2000cwa.googlegroups.com:
>
> > Hi, I'd like to run a perl script (using CGI.pm) from a web browser but
> > without using a web server. Is there any way to do that?

>
> You'd have to build a "mini web server" into the program itself, so that
> when you start it (you'd have to do *that* using you're OS's
> program-start mechanism), it starts listening on a local port, which you
> in turn point your browser at. As Xho pointed out, you could use
> HTTP:aemon to build it, though it would still involve a bit of work.
> IIRC, Net::HTTP::Server::Simple does a bit of the work for you.


I think it is just HTTP::Server::Simple, at least that is the closest I
found at search.cpan.org. I wish I knew about this module earlier. (Or
maybe I wish it existed earlier--it is pretty new.)

Xho

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
 
Reply With Quote
 
Paul Lalli
Guest
Posts: n/a
 
      08-23-2005
sstark wrote:
> What I'm really looking for, though, is simply a wysiwyg interface that
> allows users to click on choices and enter text into fields. Perhaps
> the browser/CGI solution isn't the only way. I seem to recall seeing
> some kind of Perl graphical interface a few years ago, some kind of
> "widget" thingie. Anybody know what I'm talking about and if there's a
> way to accomplish what I want?


There are many different ways of creating GUIs with Perl. The one with
which I am most familiar is Perl/Tk. If you installed ActiveState's
version of Perl, you already have it installed. Take a look at
perldoc Tk

Otherwise, you can download the Tk toolkit from CPAN:
http://search.cpan.org/~ni-s/Tk-804....d/overview.pod

You might also want to have a look at www.perltk.org

Paul Lalli

 
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
Trouble running Perl script from within a Perl script laredotornado@zipmail.com Perl Misc 4 07-29-2011 01:44 PM
Cross-browser setOpacity() without browser sniffing? petermichaux@gmail.com Javascript 16 09-07-2006 08:35 AM
Running a C# program w/GUI through a web browser Magnus Gran-Jansen ASP .Net 0 05-10-2005 07:51 AM
Problems running perl without .pl extention Kapil Khosla Perl Misc 8 06-20-2004 04:27 PM
Use perl in apache without #!/path/to/perl Kostas Hatzikokolakis Perl Misc 2 10-19-2003 03:02 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