Re: Perl CGI-html quotation marks

2014-07-04 Thread Shlomi Fish
Hi all, thanks for helping James (= the original poster). On Fri, 04 Jul 2014 11:56:05 -0400 Uri Guttman wrote: > On 07/04/2014 07:18 AM, James Kerwin wrote: > > Hello again, > > > > Apologies for the delay. I shut my laptop in frustration for the night > > yesterday. > > > > Here is a chunk of

Re: Perl CGI-html quotation marks

2014-07-04 Thread Uri Guttman
On 07/04/2014 07:18 AM, James Kerwin wrote: Hello again, Apologies for the delay. I shut my laptop in frustration for the night yesterday. Here is a chunk of the code: my $html2 = '/Results.tar.gz"> Download Files Click the button below to View your alignment in JBrowse Viewer http://bioinf6.b

Re: Perl CGI-html quotation marks

2014-07-04 Thread Sam
On 07/04/2014 12:41 AM, Shaji Kalidasan wrote: Here's one way to do it print << "BUTTON"; http://www.example.com')"> BUTTON or: print qq{http://www.example.com')">}; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://l

Re: Perl CGI-html quotation marks

2014-07-04 Thread James Kerwin
t I hadn't closed the button THING with a ">". Apparently with that it's able to handle the single quotation marks. What a fool! Thanks, James. On Thu, Jul 3, 2014 at 5:23 PM, Uri Guttman wrote: > On 07/03/2014 12:16 PM, James Kerwin wrote: > >> Hello a

Re: Perl CGI-html quotation marks

2014-07-03 Thread Shaji Kalidasan
Here's one way to do it print << "BUTTON"; http://www.example.com')"> BUTTON On Thu, Jul 3, 2014 at 9:53 PM, Uri Guttman wrote: > On 07/03/2014 12:16 PM, James Kerwin wrote: > >> Hello all, >> >> I'm currently using Perl CGI to

Re: Perl CGI-html quotation marks

2014-07-03 Thread Uri Guttman
On 07/03/2014 12:16 PM, James Kerwin wrote: Hello all, I'm currently using Perl CGI to generate a "Results" webpage. This results webpage specifies unique directories generated within the script and print these in between the blocks of html so various download and display bu

Perl CGI-html quotation marks

2014-07-03 Thread James Kerwin
Hello all, I'm currently using Perl CGI to generate a "Results" webpage. This results webpage specifies unique directories generated within the script and print these in between the blocks of html so various download and display buttons work. My problem is that I'm using a b

Re: how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread Rajeev Prasad
Thank you Ron and David. - Original Message - From: Ron Bergin To: Rajeev Prasad Cc: perl list Sent: Tuesday, August 7, 2012 9:36 PM Subject: Re: how to set session variable (not session cookie) using perl CGI -- Rajeev Prasad wrote: > I am using CGI.pm on my website, bu

Re: how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread Ron Bergin
-- Rajeev Prasad wrote: > I am using CGI.pm on my website, but I generate my pages using TT > (template Toolkit). >   > I have few questions: >   > 0. how to have a session variable (not a session cookie)? If I do not want > to use cookie, do i have to store session data in a temp file on server

Re: how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread David Christensen
On 08/07/12 14:40, Rajeev Prasad wrote: I am using CGI.pm on my website, but I generate my pages using TT (template Toolkit). I have few questions: 0. how to have a session variable (not a session cookie)? If I do not want to use cookie, do i have to store session data in a temp file on server

how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread Rajeev Prasad
I am using CGI.pm on my website, but I generate my pages using TT (template Toolkit).   I have few questions:   0. how to have a session variable (not a session cookie)? If I do not want to use cookie, do i have to store session data in a temp file on server and check it with each page load?    

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Lesley Binks
ding the documentation on your system, the Modern Perl book http://modernperlbooks.com/books/modern_perl/chapter_00.html http://learn.perl.org, http://cpan.org and http://perlmonks.org - long may they all shine under the sun. > > That brings me to my problem. I have these reports already built

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Matthew K
Matt - Original Message - > From: Mark Haney > To: beginners@perl.org > Cc: > Sent: Thursday, April 26, 2012 12:19 PM > Subject: Re: PERL CGI, HTML and PHP > > > Well, I kind of agree with you.  It's still a scripting language. Regardless > of its function. (At l

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Madrigal, Juan A
Just throwing in my two cents: Javascript can run in the backend as well. Take a look at Node.js; http://nodejs.org/ As far as perl on the web end, look into perldancer (http://perldancer.org/), mojolicious (http://mojolicio.us/) or catalyst (http://www.catalystframework.org/) They are all moder

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Mark Haney
On 04/26/2012 08:27 AM, Bob McConnell wrote: From: Mark Haney This exposes the source of your confusion. Javascript is executed in the browser, while Perl, PHP, ASP and JSP are all executed on the server. So JS simply complements all of the others. The biggest issue is that you cannot dep

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Mark Haney
ed for me. At that point, I moved to PHP since I knew how to do things with it. That brings me to my problem. I have these reports already built in perl, and all I want is something like this: PHP/HTML form -> PERL CGI -> PHP/HTML Essentially I want perl to do the grunt work and

RE: PERL CGI, HTML and PHP

2012-04-26 Thread Bob McConnell
> From: Mark Haney > > I understand the desire to 'keep with one scripting language', but what > I don't understand is why take a stand like that, yet continue to use > javascript with PHP and ASP pages. Seems to me, that in the right > instance combining the two can be very powerful. Personally

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Michael Rasmussen
> reports on various metrics for the company management. My issue arises > from the fact that I've had to move from a pure perl web interface to > PHP for it's additional feature set. Until now, all my output has been > generated by perl CGI scripts and output to STDOUT

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Octavian Rasnita
Hi, From: "Mark Haney" > As for the feature set I mentioned, I've been running into limitations > with using perl to populate dropdown boxes dynamically and such. > Granted, I'm sure there's a nice neat way to do it, but I couldn't find > anything on the interwebs to show me how, and since I k

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Uri Guttman
early matt's crap scripts and all perl/cgi sites everywhere. uri -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Dr.Ruud
On 2012-04-25 21:53, Shawn H Corey wrote: On 12-04-25 03:18 PM, Mark Haney wrote: FWIW, I've never seen an entire website built completely in perl. Doesn't mean there aren't any, but they must be very few and far between. (No offense to the perl crowd, just an observation.) Here's a few: am

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Brendan Gilroy
On Wed, Apr 25, 2012 at 3:18 PM, Mark Haney wrote: > On 04/25/2012 02:54 PM, Matthew K wrote: > >> Mark, >> >> - Original Message - >> >>> From: Mark Haney >>> To: Perl Beginners >>> Cc: >>> Sent: Wednesday, April 25,

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Shawn H Corey
On 12-04-25 03:18 PM, Mark Haney wrote: FWIW, I've never seen an entire website built completely in perl. Doesn't mean there aren't any, but they must be very few and far between. (No offense to the perl crowd, just an observation.) Here's a few: amazon.com craiglist.com livejournal.com slash

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Mark Haney
On 04/25/2012 02:54 PM, Matthew K wrote: Mark, - Original Message - From: Mark Haney To: Perl Beginners Cc: Sent: Wednesday, April 25, 2012 11:51 AM Subject: PERL CGI, HTML and PHP I've got, what I hope is a fairly simple problem that someone can point me to the best (or

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Matthew K
Mark, - Original Message - > From: Mark Haney > To: Perl Beginners  > Cc:  > Sent: Wednesday, April 25, 2012 11:51 AM > Subject: PERL CGI, HTML and PHP >  > I've got, what I hope is a fairly simple problem that someone can point me  > to the best (or best pr

PERL CGI, HTML and PHP

2012-04-25 Thread Mark Haney
fact that I've had to move from a pure perl web interface to PHP for it's additional feature set. Until now, all my output has been generated by perl CGI scripts and output to STDOUT directly, which is fine, but leaves the report rather sparse looking. (FTR, I'm no web designer,

Re: has anyone used perl CGI scripts with Hiawatha web server?

2012-03-04 Thread Shlomi Fish
Hi Rajeev, On Sat, 3 Mar 2012 19:56:52 -0800 (PST) Rajeev Prasad wrote: > Anyone has any experience to share about implementing perl CGI scripts > on Hiawatha web server? > According to http://en.wikipedia.org/wiki/Hiawatha_%28web_server%29 , the Hiawatha web-server supports CGI an

has anyone used perl CGI scripts with Hiawatha web server?

2012-03-03 Thread Rajeev Prasad
Anyone has any experience to share about implementing perl CGI scripts on Hiawatha web server? ty. R 

Re: running a shel script within a perl cgi script

2011-11-09 Thread David Christensen
On 11/09/2011 04:57 AM, Agnello George wrote: I am trying to run a shell script within a perl cgi script , however it is not getting executed . cat /vae/www/cg-bin/syscscript.pl my $openvpn = `ps aux |grep openvpn |grep -v grep`; unless ( $openvpn) { system(" /usr/sbin/openvpn /etc/op

Re: running a shel script within a perl cgi script

2011-11-09 Thread Luca Cappelletti
On Wed, Nov 9, 2011 at 13:57, Agnello George wrote: ... > my $openvpn = `ps aux |grep openvpn |grep -v grep`; > unless ( $openvpn) { > system(" /usr/sbin/openvpn /etc/openvpn/DC.ovpn "); > } > > - > cat > > do the httpd daemon permit you to run something outside it's own scope? I had similar p

running a shel script within a perl cgi script

2011-11-09 Thread Agnello George
Hi I am trying to run a shell script within a perl cgi script , however it is not getting executed . cat /vae/www/cg-bin/syscscript.pl : : my $openvpn = `ps aux |grep openvpn |grep -v grep`; unless ( $openvpn) { system(" /usr/sbin/openvpn /etc/openvpn/DC.ovpn "); } - cat When

how to fork mysqldump in perl cgi script

2011-08-03 Thread Agnello George
Hi I have the following cgi script that that takes input of the a remote database to dumped to a local server .$db1 is the input which is a database-name . The issue is that some of the data base is taking to long to get dumped from the remote server on to my local server and and i get a con

Re: Creating a detached process in perl cgi

2011-07-13 Thread Ramprasad Prasad
Ok I did get that working but not in pure perl. I put a system("nohup $process > /dev/null 2>&1 &"); instead of all the fork and setsid On 13 July 2011 20:07, Shlomi Fish wrote: > Hi Ram, > > On Wed, 13 Jul 2011 19:02:46 +0530 > Ramprasad Prasad wrote: > > > I am trying a http API that would

Re: Creating a detached process in perl cgi

2011-07-13 Thread Shlomi Fish
Hi Ram, On Wed, 13 Jul 2011 19:02:46 +0530 Ramprasad Prasad wrote: > I am trying a http API that would fork a background script and immediately > return > > I tried using fork() and setsid() or using Proc::Background > But the problem is my API hangs until the background script is complete > >

Creating a detached process in perl cgi

2011-07-13 Thread Ramprasad Prasad
I am trying a http API that would fork a background script and immediately return I tried using fork() and setsid() or using Proc::Background But the problem is my API hangs until the background script is complete Is there a way I can avoid this My code is here ( uses both fork and background

Re: Perl/CGI related domain name for sale...

2010-06-08 Thread Young W.
On Mon, 07 Jun 2010 12:17 +, "Tobias Eichner" wrote: > We are the owner of the domain name cgiscripts-perl.com and currently > think about to sell it. It has been used as an alternative domain name > for a Perl scripts website, but now is no longer needed. > I may say this domain is not so

Perl/CGI related domain name for sale...

2010-06-07 Thread Tobias Eichner
We are the owner of the domain name cgiscripts-perl.com and currently think about to sell it. It has been used as an alternative domain name for a Perl scripts website, but now is no longer needed. Maybe someone of you manages a business that is affiliated to Perl/CGI programming (or knows one

Re: Perl CGI advise/feedback please ...

2010-02-11 Thread Jeremiah Foster
On Feb 11, 2010, at 3:18, newbie01 perl wrote: > Hi all, > > I am wanting some advise/input on setting up some sort of intranet site to > allow system operators to manage the servers, mostly UNIX servers and some > Windows. I am constrained by not being able to install new modules or a > databas

Re: Perl CGI advise/feedback please ...

2010-02-10 Thread Jim Gibson
being able to install new modules or a > database, for example, MySQL. The web server will be Apache. Given the > choice between PHP and CGI-BIN. I've chosen CGI-BIN, is that a "wise" choice > ... :-) ... > Any guidance on where or how to start will be very much appreciated

Re: Perl CGI advise/feedback please ...

2010-02-10 Thread Jeff Peng
On Thu, Feb 11, 2010 at 10:18 AM, newbie01 perl wrote: > > I need some guidance if someone know of any existing set of CGI-BIN scripts > that I can just plug it and used for this purpose. > Will you run the scripts under the share hosting environment? If so you are very hard to get the applicati

Perl CGI advise/feedback please ...

2010-02-10 Thread newbie01 perl
Hi all, I am wanting some advise/input on setting up some sort of intranet site to allow system operators to manage the servers, mostly UNIX servers and some Windows. I am constrained by not being able to install new modules or a database, for example, MySQL. The web server will be Apache. Given t

Re: AW: Perl CGI Incremental find

2009-11-17 Thread Dave Tang
On Tue, 17 Nov 2009 19:20:42 +1000, Thomas Bätzler wrote: Hi, Jeff Pang wrote: On Nov 17, 2009, Dave Tang wrote: > Is it possible to implement an incremental find* feature on a Perl CGI > page? I'm running Apache2 with mod_perl on linux. > > For example, if I have a lis

AW: Perl CGI Incremental find

2009-11-17 Thread Thomas Bätzler
Hi, Jeff Pang wrote: > On Nov 17, 2009, Dave Tang wrote: > > Is it possible to implement an incremental find* feature on a Perl CGI > > page? I'm running Apache2 with mod_perl on linux. > > > > For example, if I have a list of stuff (A, Aa, B, Bb, C, CA, etc.

Re: Perl CGI Incremental find

2009-11-17 Thread Jeff Pang
This is the stuff JavaScript will do, nothing about CGI, which is a server-end implement. On Nov 17, 2009, Dave Tang wrote: Hi everybody, Is it possible to implement an incremental find* feature on a Perl CGI page? I'm running Apache2 with mod_perl on linux. For example, if I h

Re: Perl CGI Incremental find

2009-11-16 Thread Owen
> Hi everybody, > > Is it possible to implement an incremental find* feature on a Perl CGI > page? I'm running Apache2 with mod_perl on linux. > > For example, if I have a list of stuff (A, Aa, B, Bb, C, CA, etc. > stored > in a file or database) and when a user st

Perl CGI Incremental find

2009-11-16 Thread Dave Tang
Hi everybody, Is it possible to implement an incremental find* feature on a Perl CGI page? I'm running Apache2 with mod_perl on linux. For example, if I have a list of stuff (A, Aa, B, Bb, C, CA, etc. stored in a file or database) and when a user starts typing in A into the web fo

Re: Edit a config file using perl cgi script

2009-07-09 Thread Randal L. Schwartz
> "Eric" == Eric Veith writes: Eric> sudo perl -e 'open($fh, "<", "/tmp/foo"); @f = <$fh>; close($fh); open($fh, Eric> ">", "/tmp/foo"); foreach(@f) { s/^(Key1=).*/$1NewValue1/; print $fh $_; } Eric> close($fh);' Eric> As always, TIMTOWTDI. Much easier way is in-place editing: perl -pi.ba

Re: Edit a config file using perl cgi script

2009-07-09 Thread Eric Veith
x27;ll probably know that already. :-) -- Eric Alpesh Naik wrote on 07/09/2009 12:23:54 PM: > From: > > Alpesh Naik > > To: > > Eric Veith/Germany/i...@ibmde > > Date: > > 07/09/2009 12:23 PM > > Subject: > > Re: Edit a config file usi

Re: Edit a config file using perl cgi script

2009-07-09 Thread Eric Veith
e on 07/09/2009 11:34:43 AM: > From:> > > Alpesh Naik > > To: > > beginners@perl.org > > Date: > > 07/09/2009 11:35 AM > > Subject: > > Edit a config file using perl cgi script > > Hi, > > I need to edit a config file using perl c

Re: Edit a config file using perl cgi script

2009-07-09 Thread Jenn G.
On Thu, Jul 9, 2009 at 5:34 PM, Alpesh Naik wrote: > > For eg: below is what I have in the config file "configfile.cfg". > > Key1=OldValue1 > Key2=OldValue2 > > I want to search for "Key1" and change "OldValue1" to "NewValue1" Read the content into memory, search the key (i.e, use a regex) and rep

Edit a config file using perl cgi script

2009-07-09 Thread Alpesh Naik
Hi, I need to edit a config file using perl cgi script. i.e., Search with the 'key' string and edit the 'value'. For eg: below is what I have in the config file "configfile.cfg". Key1=OldValue1 Key2=OldValue2 I want to search for "Key1" and change

RE: Perl CGI: accessing a element value from the current form

2009-06-01 Thread David Christensen
Ravi Malghan wrote: > Hi: I have web page built using perl cgi. Generated page has the > following element > admin > > Within the perl script is there a way to access the value of the > element userName and assign it to a variable? Something along the > lines > $currentU

Re: Perl CGI: accessing a element value from the current form

2009-06-01 Thread Jim Gibson
On 6/1/09 Mon Jun 1, 2009 1:40 PM, "Ravi Malghan" scribbled: > > Hi: I have web page built using perl cgi. Generated page has the following > element > > admin > > Within the perl script is there a way to access the value of the element > userName and as

Perl CGI: accessing a element value from the current form

2009-06-01 Thread Ravi Malghan
Hi: I have web page built using perl cgi. Generated page has the following element admin Within the perl script is there a way to access the value of the element userName and assign it to a variable? Something along the lines $currentUser = ; Thanks Ravi -- To unsubscribe, e

RE: Doubt in Perl CGI

2008-07-16 Thread Thomas Bätzler
Prabu Ayyappan <[EMAIL PROTECTED]> asked: > My Perl CGI script is working fine when i run the code in the > command prompt as "perl myscript.cgi" . However when i run > the same code in the browser(Internet Explorer), It is not > working properly. Have you tried ru

Doubt in Perl CGI

2008-07-16 Thread Prabu Ayyappan
Hi All, My Perl CGI script is working fine when i run the code in the command prompt as "perl myscript.cgi" . However when i run the same code in the browser(Internet Explorer), It is not working properly. I am using "YAML::Syck" module in my CGI Script to parse the YAML

Re: Perl-cgi execution problem

2007-05-10 Thread Tom Phoenix
On 5/10/07, I BioKid <[EMAIL PROTECTED]> wrote: I need to implement a perl script that will generate response page and at the same time submit the program to the server and once it is done, it should send a mail. Randal did something similar in his 20th Web Techniques column. It's not quite

Perl-cgi execution problem

2007-05-10 Thread I BioKid
Dear All, We are developing a web server, actually an email based server. The server should do the following : 1. Accept email and a data file from user 2. Give a resopnse to user as input and emai recieved and submit process in backend and run it at the same time the html page should complete

Re: Problem with Fcntl.pm in a compiled(perlcc) Perl-cgi program

2007-02-07 Thread Tom Phoenix
On 2/7/07, I BioKid <[EMAIL PROTECTED]> wrote: I have a compiled perl-cgi program (using perlcc compiled on a 32bit Linux Machine), now I have moved my program to another machine (64bit). Now I am not able to run the program. Have you tried running the non-compiled version (i.e., you

Problem with Fcntl.pm in a compiled(perlcc) Perl-cgi program

2007-02-07 Thread I BioKid
Dear All, I have a compiled perl-cgi program (using perlcc compiled on a 32bit Linux Machine), now I have moved my program to another machine (64bit). Now I am not able to run the program. In the error_log I am getting the error : Can't locate Fcntl.pm. But Fcntl.pm is there, When

Re: PERL CGI drop down list

2006-06-16 Thread Prabu
Mark Martin wrote: Thanks Prabu , Works great. I'm not having any luck finding good documentation on this so I'll throw 2 more questions at you if that's okay: Is there a method for setting the selected value as with the html below? Also, is it possible to display meaningful text instead of

Re: PERL CGI drop down list

2006-06-16 Thread Chandru
Prabu Ayyappan wrote: On 6/16/06, Mark Martin <[EMAIL PROTECTED]> wrote: Hi, does anybody have the correct syntax for using a drop down list. I'm using the object oriented type syntax for CGI. For example my text boxes are printed thus : $cgi = new CGI; print $cgi->input({-type=>"text",-name=>

Re: PERL CGI drop down list

2006-06-16 Thread Mr. Shawn H. Corey
On Fri, 2006-16-06 at 11:43 +, Mark Martin wrote: > Hi, > does anybody have the correct syntax for using a drop down list. > I'm using the object oriented type syntax for CGI. For example my text > boxes are printed thus : > > $cgi = new CGI; > print $cgi->input({-type=>"text",-name=>"textbox

Re: PERL CGI drop down list

2006-06-16 Thread Prabu Ayyappan
On 6/16/06, Mark Martin <[EMAIL PROTECTED]> wrote: Hi, does anybody have the correct syntax for using a drop down list. I'm using the object oriented type syntax for CGI. For example my text boxes are printed thus : $cgi = new CGI; print $cgi->input({-type=>"text",-name=>"textbox01",-class=>"te

PERL CGI drop down list

2006-06-16 Thread Mark Martin
Hi, does anybody have the correct syntax for using a drop down list. I'm using the object oriented type syntax for CGI. For example my text boxes are printed thus : $cgi = new CGI; print $cgi->input({-type=>"text",-name=>"textbox01",-class=>"textbox"}) drop down list innormal html would be :

RE: PERL-CGI to pass a file to multiple server

2006-05-29 Thread Thomas Bätzler
I BioKid asked: > We have three web servers (say a,b,c) that take a similar > file (xyz.txt) and gives the results. > Now, we want to make a meta-server with three check-boxes and > only one input form. > The purpose is to accept a single file and run the 'checked' >

PERL-CGI to pass a file to multiple server

2006-05-29 Thread I BioKid
Hi all, We have three web servers (say a,b,c) that take a similar file (xyz.txt) and gives the results. Now, we want to make a meta-server with three check-boxes and only one input form. The purpose is to accept a single file and run the 'checked' server and provide the results as two separate l

Re: ssi and Perl/CGI

2006-05-15 Thread Chad Perrin
On Mon, May 15, 2006 at 12:07:42AM -0500, Sumo Wrestler (or just ate too much) wrote: > Chad Perrin wrote: > >[...] > >I'm still curious about why exec cgi works for a page generated > >entirely by the CGI script, but not for CGI script output that I want to > >include in the middle of a page of o

Re: ssi and Perl/CGI

2006-05-15 Thread Chad Perrin
On Mon, May 15, 2006 at 08:38:23AM +0200, Bjørge Solli wrote: > > Have you considered trying mod_rewrite? Your host may have it if it runs > apache. > > Try using something like this in your .htaccess-file: > RewriteEngine on > RewriteRule ^$ cgi-bin/foo.pl > > I use this to avoid ugly urls lik

Re: ssi and Perl/CGI

2006-05-15 Thread Sumo Wrestler (or just ate too much)
Chad Perrin wrote: [...] I'm still curious about why exec cgi works for a page generated entirely by the CGI script, but not for CGI script output that I want to include in the middle of a page of otherwise fairly mundane markup. Since that's really the most on-topic part of my question for this

Re: ssi and Perl/CGI

2006-05-14 Thread Bjørge Solli
On Monday 15 May 2006 00:31, Chad Perrin wrote: > I have Perl/CGI scripts whose output I'd like to include in an SHTML > page. For instance, foo.shtml should include output from bar.pl (which > is located in the cgi-bin directory). Server Side Includes (SSI) seem > to be m

Re: ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
On Sun, May 14, 2006 at 05:00:08PM -0600, Chad Perrin wrote: > On Sun, May 14, 2006 at 06:43:13PM -0400, Ricky Zhou wrote: > > > For your specific problem, try using > > How do I go about passing variables to the script via include virtual > without using cookies, then? My understanding is tha

Re: ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
On Sun, May 14, 2006 at 06:43:13PM -0400, Ricky Zhou wrote: > > > First, some tips for looking into further such problems: > * Check the error log-- the messages are usually pretty descriptive. Unfortunately, I don't have access to the logs. As I mentioned in the original email, it's a cheapo web

Re: ssi and Perl/CGI

2006-05-14 Thread Ricky Zhou
On 5/14/06, Chad Perrin <[EMAIL PROTECTED]> wrote: If, however, I have the markup with which I want to wrap my Perl output defined in foo.shtml, and bar.pl only outputs the stuff that needs to be dynamically generated by the Perl script, I get this output in my browser: [an error occurred

ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
I have Perl/CGI scripts whose output I'd like to include in an SHTML page. For instance, foo.shtml should include output from bar.pl (which is located in the cgi-bin directory). Server Side Includes (SSI) seem to be my only option for making this work, unless there's something I'

Re: perl cgi problem

2006-04-20 Thread Mr. Shawn H. Corey
On Thu, 2006-20-04 at 13:08 +0100, Dermot Paikkos wrote: > On 20 Apr 2006 at 11:54, Saurabh Singhvi wrote: > > > Hi > > > > I am getting 500 internal server errors when i use > > > > #!/usr/bin/perl -wT > > > > in cgi's. It goes away if i remove the T part. So what could be the > > problem?/ >

Re: perl cgi problem

2006-04-20 Thread Dermot Paikkos
On 20 Apr 2006 at 11:54, Saurabh Singhvi wrote: > Hi > > I am getting 500 internal server errors when i use > > #!/usr/bin/perl -wT > > in cgi's. It goes away if i remove the T part. So what could be the > problem?/ Something is tainted. Check the web-server error log for the perl error. Hav

perl cgi problem

2006-04-20 Thread Saurabh Singhvi
Hi I am getting 500 internal server errors when i use #!/usr/bin/perl -wT in cgi's. It goes away if i remove the T part. So what could be the problem?/ thanks Saurabh

Re: Perl/CGI detecting status of radio button

2006-03-10 Thread Jeff Pang
>so how could I implement it, please? Give your codes here please.As someone here said,'no code,no help'. >I'm not sure if CGI supports some functions directly? If I remember that correctly,the 'param()' function could do the things for you. Execute 'perldoc CGI' and search for 'radio',you cou

Re: Perl/CGI detecting status of radio button

2006-03-10 Thread Nan Jiang
so how could I implement it, please? I'm not sure if CGI supports some functions directly? Nan From: Chris Devers <[EMAIL PROTECTED]> Reply-To: beginners@perl.org To: Nan Jiang <[EMAIL PROTECTED]> CC: beginners@perl.org Subject: Re: Perl/CGI detecting status of radio button

Re: Perl/CGI detecting status of radio button

2006-03-10 Thread Chris Devers
On Fri, 10 Mar 2006, Nan Jiang wrote: > I would like to ask if some of you know how to use perl to detect the > status (checked or unchecked) of a radio button from a HTML form? Yes. Some of us do know how to do this. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

RE: Perl/CGI detecting status of radio button

2006-03-10 Thread Thomas Bätzler
Nan Jiang <[EMAIL PROTECTED]> asked: > I would like to ask if some of you know how to use perl to > detect the status (checked or unchecked) of a radio button > from a HTML form? http://www.elated.com/tutorials/programming/perl_cgi/form_validation/ HTH, Thomas -- To unsubscribe, e-mail: [EMAIL

Perl/CGI detecting status of radio button

2006-03-10 Thread Nan Jiang
Hello everyone, I would like to ask if some of you know how to use perl to detect the status (checked or unchecked) of a radio button from a HTML form? many thanks, Nan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl CGI and URL rewriting returning source instead of execution

2005-08-29 Thread Philipp Traeder
On Monday 29 August 2005 19:20, Blake Girardot wrote: > I have a perl cgi application, not mod_perl, but an actual .cgi application > running under apache on OS X. > > As many web apps, it makes use of some long get requests with variable > labels and values. For example: > >

Perl CGI and URL rewriting returning source instead of execution

2005-08-29 Thread Blake Girardot
Hi, I have a perl cgi application, not mod_perl, but an actual .cgi application running under apache on OS X. As many web apps, it makes use of some long get requests with variable labels and values. For example: http://server.com/cgi-bin/app.cgi?t=new.htm&c=jlpnew.html I wro

Errors on running Perl CGI scripts on Tomcat

2005-05-20 Thread Robert Kerry
I know this has been asked for millions of time, but I searched google for the entire day but did not get an answer, instead I found millions of ppl who have the same problem as I am. The problem is simple: 1. The same code runs well on command line 2. When Running on Tomcat, the html file gives su

Re: Very basic question about running perl cgi on tomcat

2005-04-26 Thread Offer Kaye
On 4/25/05, Robert Kerry wrote: > What should I do? Thank you. > You should use Google :-) The first link returned by searching for "Tomcat" and "Perl": http://www.ftponline.com/javapro/2003_03/online/perl_teden_03_18_03/ HTH, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Very basic question about running perl cgi on tomcat

2005-04-25 Thread Robert Kerry
Chris, Thanks. I'm not switching to Apache http server. Unfortunately the same thing happened again. I put the first.pl in the /cgi-bin/ directory and try to access it via http://localhost/cgi-bin/first.pl, it tells me that file not found. I don't know what I should do for httpd.conf file. Thanks

Very basic question about running perl cgi on tomcat

2005-04-25 Thread Robert Kerry
I changed the web.xml file and the .jar suffix as required, and create a new directory WEB-INF/cgi/ under webapps/ directory, I put my first.pl into that directory, and try to visit it using http://localhost:8080/cgi/first.pl but it doesn't work. I've also tried /cgi-bin/first.pl and something else

RE: File is not getting created in perl CGI

2005-01-31 Thread Manav Mathur
Subject: File is not getting created in perl CGI File is not getting created in perl CGI mode... It is surprising that the file is not created in the CGI I tried this from the command line it is getting created there... I am not able to debug also this issue. Please help in proceeding this

Re: File is not getting created in perl CGI

2005-01-31 Thread Ing. Branislav Gerzo
Anish Kumar K. [AKK], on Monday, January 31, 2005 at 19:41 (+0530) contributed this to our collective wisdom: AKK> #!/usr/bin/perl use strict; use warnnings; #always put this at the top! AKK> use CGI; AKK> open (TXT, ">tmp.txt") || die "Can't create $file"; what is in $file ? :) AKK> prin

RE: File is not getting created in perl CGI

2005-01-31 Thread Bob Showalter
Anish Kumar K. wrote: > File is not getting created in perl CGI mode... > > It is surprising that the file is not created in the CGI > > I tried this from the command line it is getting created there... Most likely explanation is that the web server user does not have wri

File is not getting created in perl CGI

2005-01-31 Thread Anish Kumar K.
File is not getting created in perl CGI mode... It is surprising that the file is not created in the CGI I tried this from the command line it is getting created there... I am not able to debug also this issue. Please help in proceeding this #!/usr/bin/perl use CGI; my $cgi=new CGI

Re: How to throw exceptions for perl cgi program?

2004-12-31 Thread JupiterHost.Net
Siegfried Heintze wrote: How do I throw an exception when my database API reports an error code? The database implementation does not throw exceptions so I have to. use the die() function... perldoc -f die $dbh->whatever($query) or die $dbh->errstr; Your specific API would have more info on specif

RE: How to throw exceptions for perl cgi program?

2004-12-31 Thread Siegfried Heintze
@perl.org Subject: Re: How to throw exceptions for perl cgi program? In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Siegfried Heintze) writes: >I'm buffering my html/javascript output in a large array of strings. This >frees me to perform my computations independently of the orde

Re: How to throw exceptions for perl cgi program?

2004-12-29 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Siegfried Heintze) writes: >I'm buffering my html/javascript output in a large array of strings. This >frees me to perform my computations independently of the order they appear >in the output. > >However, I have a problem: Let us suppose I have a

How to throw exceptions for perl cgi program?

2004-12-28 Thread Siegfried Heintze
I'm buffering my html/javascript output in a large array of strings. This frees me to perform my computations independently of the order they appear in the output. However, I have a problem: Let us suppose I have an error from my database and I have not executed "print $q->header( ),start_html(-ti

Re: perl-cgi

2004-10-23 Thread mk76
It was a problem with the ScriptAlias directive in the httpd.conf file. Thanks for your help Quoting Gunnar Hjalmarsson <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > I am writing a perl cgi script. > > Are you? I was almost sure that you had just copied some code

Re: perl-cgi

2004-10-23 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: #! /usr/bin/perl That line is almost okay. It's ususally written without the space, though (I don't know if that makes a difference.) #! /usr/bin/perl Obviously I meant: #!/usr/bin/perl -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscrib

Re: perl-cgi

2004-10-23 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I am writing a perl cgi script. Are you? I was almost sure that you had just copied some code from a very old document on the web. all I get is the script itself in the browser. That problem has nothing to do with the script in itself, but it is a web server issue. In

  1   2   >