Re: CGI script produces blank screen

2014-06-28 Thread SSC_perl
> Perhaps some module on which the script depends is not available/installed on > that server. But yes.. looking into the web server error log should help. > > > On 28 June 2014 08:35, John SJ Anderson wrote: > On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl wrote: > > Any input would be gr

Re: CGI script produces blank screen

2014-06-28 Thread Ahmad Bilal
Perhaps some module on which the script depends is not available/installed on that server. But yes.. looking into the web server error log should help. On 28 June 2014 08:35, John SJ Anderson wrote: > On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl wrote: > > Any input would be greatly appre

Re: CGI script produces blank screen

2014-06-27 Thread John SJ Anderson
On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl wrote: > Any input would be greatly appreciated! Look in the web server error log. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

CGI script produces blank screen

2014-06-27 Thread SSC_perl
I don't have a lot of info to go on just yet, so please bear with me. I'm experiencing a problem with a blank screen on a certain install of SurfShop. When on a product detail page that has options, if I try to add that item to the cart w/o selecting any of the options, it shoul

Re: BEGIN Block in CGI Script

2013-01-28 Thread Mike Flannigan
Thank you. On 1/28/2013 3:07 PM, Shawn Corey wrote: The attached CGI is useful for determining what a script's environment is.

Re: BEGIN Block in CGI Script

2013-01-27 Thread Shawn H Corey
On Sun, 27 Jan 2013 12:30:17 -0600 Mike Flannigan wrote: > That @INC data is apparently from the website domain. The attached CGI is useful for determining what a script's environment is. -- Don't stop where the ink does. Shawn env.cgi Description: Binary data -- To unsubscribe, e-m

Re: BEGIN Block in CGI Script

2013-01-27 Thread Mike Flannigan
Thanks so much for the quick response. I appreciate it. Of course I am putting this cgi file on my website domain and running it there, so in a way it is running on Unix. It is running that code, but whether it is working or not is not clear to me. At the beginning of the code @INC is: /usr/l

Re: BEGIN Block in CGI Script

2013-01-27 Thread Shawn H Corey
ect that. Am I correct > when I say that this code includes all the directories > where Perl is located (C:/Perl in my case) in @INC, so > there is little chance of not finding a module I have > installed and am calling in this CGI script? It's better to keep local modules under the s

Re: BEGIN Block in CGI Script

2013-01-27 Thread Ken Slater
correct > when I say that this code includes all the directories > where Perl is located (C:/Perl in my case) in @INC, so > there is little chance of not finding a module I have > installed and am calling in this CGI script? > > > Mike Flannigan > Hi, I may be wrong, as I haven

BEGIN Block in CGI Script

2013-01-27 Thread Mike Flannigan
finding a module I have installed and am calling in this CGI script? Mike Flannigan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

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

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: Forked script doesnt exec from a cgi script

2009-02-08 Thread Neetee Pawa
, Nandambakkam Post, Ramapuram, Chennai-600 089. Jeff Peng 02/08/2009 06:02 PM To Neetee Pawa/GIS/c...@csc cc beginners@perl.org Subject Re: Forked script doesnt exec from a cgi script 2009/2/8 Neetee Pawa : > > I tried to try a test.pl which sleeps for 10 secs , then i can

Forked script doesnt exec from a cgi script

2009-02-08 Thread Neetee Pawa
Hi All, I am trying to invoke a perl script in background from a cgi script. Code seems working as i can see the script gets invoked however nothing gets executed from the script. ( the script is functioning fine from the command prompt) Here is what i have written $SIG{CHLD}='IGNORE

Re: How to run cgi script

2008-09-01 Thread Rob Dixon
Irfan J Sayed (isayed) wrote: > Hi, > > I have installed IIS on my machine (to make my machine web server). Now > i need to execute / run cgi script on my machine. > cgi script is saved in c:\irfan. > > now how should i run this cgi script in web browser. which webURL i &g

How to run cgi script

2008-09-01 Thread Irfan J Sayed (isayed)
Hi, I have installed IIS on my machine (to make my machine web server). Now i need to execute / run cgi script on my machine. cgi script is saved in c:\irfan. now how should i run this cgi script in web browser. which webURL i should give. Regards Irfan.

Re: Geting the Host from URL in cgi script

2008-03-28 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: sivasakthi wrote: I have passed the one URL to cgi script , and i have retrieve the values by using the param method.. the example url is following , http://172.16.2.30:2004/block/blocked.cgi?url=google.com&target=gambling now i wanted to retrieve the host of

Re: Geting the Host from URL in cgi script

2008-03-28 Thread Gunnar Hjalmarsson
sivasakthi wrote: I have passed the one URL to cgi script , and i have retrieve the values by using the param method.. the example url is following , http://172.16.2.30:2004/block/blocked.cgi?url=google.com&target=gambling now i wanted to retrieve the host of http://172.16.2.30:2004/b

Geting the Host from URL in cgi script

2008-03-28 Thread sivasakthi
Hi all, I have passed the one URL to cgi script , and i have retrieve the values by using the param method.. the example url is following , http://172.16.2.30:2004/block/blocked.cgi?url=google.com&target=gambling now i wanted to retrieve the host of http://172.16.2.30:2004/block/blocked

Re: Problem with scope in CGI script

2007-11-06 Thread John W . Krahn
On Tuesday 06 November 2007 00:24, Gunnar Hjalmarsson wrote: > John W . Krahn wrote: > > On Sunday 04 November 2007 18:06, Mike Martin wrote: > >> sub run_cmd { return print > > > > print() returns either true or false. Why are you returning this > > value from your sub? > > > >> span( { -class =>

Re: Problem with scope in CGI script

2007-11-06 Thread Gunnar Hjalmarsson
John W . Krahn wrote: On Sunday 04 November 2007 18:06, Mike Martin wrote: sub run_cmd { return print print() returns either true or false. Why are you returning this value from your sub? span( { -class => 'place_cmd' }, submit( -name => 'action', -value => shift ) ), p }; ... run_cmd(

Re: Problem with scope in CGI script

2007-11-05 Thread John W . Krahn
On Sunday 04 November 2007 18:06, Mike Martin wrote: > > Hi Hello, > I have the following script > > #!/usr/bin/perl -w > use CGI qw/:standard/; > use CGI::Carp qw(fatalsToBrowser warningsToBrowser); > use strict; > use File::Basename; > > our $list; > sub run_cmd { return print print() returns

Re: Problem with scope in CGI script

2007-11-05 Thread Tom Phoenix
On 11/4/07, Mike Martin <[EMAIL PROTECTED]> wrote: > Hi I have the following script > our $list; > sub print1 { > > my %list; Okay, that's two variables named 'list'. > print header(); > print start_html('Man Pages'); > my $page=param('man'); > my @array=`find /usr/share/man -name $page*`; > m

Problem with scope in CGI script

2007-11-04 Thread Mike Martin
Hi I have the following script #!/usr/bin/perl -w use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use strict; use File::Basename; our $list; sub run_cmd {return print span({-class=>'place_cmd'},submit(-name=>'action', -value=>shift)),p}; my %opts=(entry=>\&entry, print1

Re: how to pass double quotes in a url from CGI script

2007-03-30 Thread Rob Dixon
Ravi Malghan wrote: Hi: I am having trouble passing double quotes when passing a url string. Everything after the double quotes does not go through. For example in the perl script below, the browser ends up going to http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qua

Re: how to pass double quotes in a url from CGI script

2007-03-29 Thread yitzle
$url = "http://...=\"1406746\"";; print ''; Plugging in the variable gives: http://...=\"1406746\"";>' Should there be a " after the URL=? That may be screwing it up. You also probably want to call a function (don't of its name) to convert the "s into the proper HTTP encoded format. (%22 ?) On

how to pass double quotes in a url from CGI script

2007-03-29 Thread Ravi Malghan
Hi: I am having trouble passing double quotes when passing a url string. Everything after the double quotes does not go through. For example in the perl script below, the browser ends up going to http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qual='TRS%20Ticket%20Numbe

Re: cgi script

2006-09-28 Thread Tom Phoenix
On 9/28/06, Kaushal Shriyan <[EMAIL PROTECTED]> wrote: #!/bin/bash echo "Content-type: text/plain"; echo set That's a shell script. You're not even using a Perl program; why are you asking for help in a Perl beginners' forum? I dont get values for REMOTE_HOST = and REMOTE_USER = Are you su

cgi script

2006-09-28 Thread Kaushal Shriyan
Hi ALL I have a issue when i use script (test.cgi) #!/bin/bash echo "Content-type: text/plain"; echo set I get all the http headers populated with the values correctly but when I use the below script (test-cgi) #!/bin/sh # disable filename globbing set -f echo Content-type: text/plain echo

overcome "ping requires root privilege" when running as a cgi script

2006-09-19 Thread ubergoonz
Hi, I wonder if anyone have a solution to the subject problem when using Net::Ping ? -- Best Regards, ubergoonz

Re: process data into an array using CGI script

2006-09-04 Thread Peter Scott
At 10:58 AM 9/3/2006, you wrote: > my @data = map [ split ] => split /\r?\n/, > param('data'); Hi Peter, Sorry to bother again. What if I have some lines containing nothing(blank lines) and how do I remove these lines before using the map function? I try "chomp $data" but it doesn't work. my

Re: process data into an array using CGI script

2006-09-04 Thread Peter Scott
At 08:34 AM 9/3/2006, you wrote: > my @data = map [ split ] => split /\r?\n/, > param('data'); Thanks and I like this syntax. But where can I find this syntax perldoc? http://learn.perl.org/beginners-faq #2.7. Please post all questions to the group, not privately. Thanks. -- Peter Scott Paci

Re: process data into an array using CGI script

2006-09-03 Thread Xavier Mas i Ramón
A Diumenge 03 Setembre 2006 03:09, chen li va escriure: > Dear all, > > I paste some data into textarea in a CGI script and > use param('data')to retrieve the data. I want to pass > the data into an array but what I find is that I only > one dimensional array. Can s

Re: process data into an array using CGI script

2006-09-02 Thread Mumia W.
On 09/02/2006 08:09 PM, chen li wrote: Dear all, I paste some data into textarea in a CGI script and use param('data')to retrieve the data. I want to pass the data into an array but what I find is that I only one dimensional array. Can someone here give me a hand? Thanks, Li data p

Re: process data into an array using CGI script

2006-09-02 Thread Peter Scott
On Sat, 02 Sep 2006 18:09:10 -0700, chen li wrote: > Dear all, > > I paste some data into textarea in a CGI script and > use param('data')to retrieve the data. I want to pass > the data into an array but what I find is that I only > one dimensional array. Can s

Re: process data into an array using CGI script

2006-09-02 Thread Jeff Pang
> >data pasted into textarea: > >1 1 1 >2 2 2 >3 3 3 > >(each column separated by tab and each row ended with >\n) > >after passed into script and processed the expected >result is >my @data=( > [1,1,1], > [2,2,2], > [3,3,3], > ); > Hello, You can do it like: my

process data into an array using CGI script

2006-09-02 Thread chen li
Dear all, I paste some data into textarea in a CGI script and use param('data')to retrieve the data. I want to pass the data into an array but what I find is that I only one dimensional array. Can someone here give me a hand? Thanks, Li data pasted into textarea: 1 1 1 2 2 2 3

Issues in CGI script

2006-08-08 Thread Nath, Alok (STSD)
Hi, I have a table where each cell represents a particular server. Each element in the cell has hyperlinks specified.The hyperlink invokes a script which generates a form and helps user to save and update information. The form has a field like name indicating

Re: its DONE !! CGI Script to pass a file to different servers - code is here

2006-07-26 Thread JupiterHost.Net
I BioKid wrote: I made it !!! Thanks to my buddy Arshad - Buddy you're a true-perl-buddy !!! Here comes an easy way, not exactly the way I want it - but I can do it this way too, After all :*There's more than one day to do it in perl*:We used WWW::Mechanize module: A scrap version of the cod

its DONE !! CGI Script to pass a file to different servers - code is here

2006-07-26 Thread I BioKid
I made it !!! Thanks to my buddy Arshad - Buddy you're a true-perl-buddy !!! Here comes an easy way, not exactly the way I want it - but I can do it this way too, After all :*There's more than one day to do it in perl*:We used WWW::Mechanize module: A scrap version of the code we used is here :

RE: Want to start remote desktop thru the CGI script

2006-07-04 Thread Nath, Alok (STSD)
Thanx Tom, for clarification. ~Alok. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Phoenix Sent: Tuesday, July 04, 2006 10:34 PM To: Nath, Alok (STSD) Cc: beginners@perl.org Subject: Re: Want to start remote desktop thru the CGI script On

RE: Want to start remote desktop thru the CGI script

2006-07-04 Thread Nath, Alok (STSD)
Thanx bs for clarification. ~alok -Original Message- From: Bjørge Solli [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 10:27 PM To: beginners@perl.org Subject: Re: Want to start remote desktop thru the CGI script Please reply below the text you are answering, it makes the

Re: Want to start remote desktop thru the CGI script

2006-07-04 Thread Tom Phoenix
On 7/4/06, Nath, Alok (STSD) <[EMAIL PROTECTED]> wrote: What I want to provide is a page with some machine Id's. So once somebody clicks the hyperlinks , it should remote desktop instead of telnet. If the machine understands the telnet: protocol, you can use clickable telnet: U

Re: Want to start remote desktop thru the CGI script

2006-07-04 Thread Bjørge Solli
esktop instead of telnet. > > Is it not possible ? It is not possible with perl (AFAIK), since running a program in a CGI script will run the program on the *server*, and not on the users client machine. The reason it works with telnet is that most (all?) web clients have pre d

RE: Want to start remote desktop thru the CGI script

2006-07-04 Thread Nath, Alok (STSD)
u the CGI script On 7/4/06, Nath, Alok (STSD) <[EMAIL PROTECTED]> wrote: > What I want is when I click the hyperlink it should run the command > 'mstsc IP Address'(instead of telnet) so that I can remote > desktop to that machine. So, you want to run a program on

Re: Want to start remote desktop thru the CGI script

2006-07-04 Thread Tom Phoenix
On 7/4/06, Nath, Alok (STSD) <[EMAIL PROTECTED]> wrote: What I want is when I click the hyperlink it should run the command 'mstsc IP Address'(instead of telnet) so that I can remote desktop to that machine. So, you want to run a program on the computer at the browser's end of the conn

Want to start remote desktop thru the CGI script

2006-07-04 Thread Nath, Alok (STSD)
Hi, Here's a script which has some two cells in the table.I want to make a change here. What I want is when I click the hyperlink it should run the command 'mstsc IP Address'(instead of telnet) so that I can remote desktop to that machine. Can anybody help me how

RE: Removing print statements from cgi script

2006-06-30 Thread Charles K. Clarkson
Mike Martin wrote: : Does anyone know if its possible to remove data printed from a : web-page created from cgi.pm depnding on the effect of a : sub-routine. Not from the server. It may be possible to do this with javascript or with AJAX. Search Google for details on AJAX. : : ie: : : I pr

Removing print statements from cgi script

2006-06-30 Thread Mike Martin
Does anyone know if its possible to remove data printed from a web-page created from cgi.pm depnding on the effect of a sub-routine. ie: I print the header and a selection form which then runs a sub - is it posible to replace the contents without loading a new web-page Thanks -- To unsubscribe

Re: CGI Script to pass a file to different servers

2006-06-30 Thread I BioKid
Hi all - I woder why am always having some trivial problems to solve ??? I can explain what am lloking for in detail. Say, We have 3 inhouse web servers and 2 remote web servers. All of this web server accept same type of files as input : say foo.txt (these file contain some data and the 5 web se

RE: CGI Script to pass a file to different servers

2006-06-28 Thread Jeff Peng
Jeff, If you did do it, where's your advice to BioKid? I don't know the special situation for him.But for me,I would rather write a simple socket server to accept the requests from CGI and return the results to it.But if BioKid want to transmit a file to remote host,I think the other mod

RE: CGI Script to pass a file to different servers

2006-06-28 Thread William Paulsen \(W\)
Jeff, I you did do it, where's your advice to BioKid? tks -Original Message- From: Jeff Peng [mailto:[EMAIL PROTECTED] Sent: 24 June 2006 03:21 PM To: beginners@perl.org Subject: RE: CGI Script to pass a file to different servers I once did the things like you said.I wrote a s

Re: CGI Script to pass a file to different servers

2006-06-26 Thread JupiterHost.Net
I BioKid wrote: Hi all, Her am not able to do socket programming :( Any other solutions ? Net::FTP RSYNC, SCP, etc etc, Not really sure what you're trying to do... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

CGI Script to pass a file to different servers

2006-06-26 Thread I BioKid
Hi all, Her am not able to do socket programming :( Any other solutions ? Thanks -- Forwarded message -- From: Jeff Peng <[EMAIL PROTECTED]> Date: Jun 24, 2006 6:51 PM Subject: RE: CGI Script to pass a file to different servers To: beginners@perl.org I once did the thing

RE: CGI Script to pass a file to different servers

2006-06-24 Thread Jeff Peng
I once did the things like you said.I wrote a socket server on another host,then my cgi scripts put the requests to remot socket server,got the results from socket server and print the results to clients' browser. From: "I BioKid" <[EMAIL PROTECTED]> To: beginners@

CGI Script to pass a file to different servers

2006-06-24 Thread I BioKid
hi all, I need to pass a file from a cgi program to another remote cgipgms and I need to print the out on my web page - how to do it ? any idea ? I posted this query few back - but still I couldnt do it :( --

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread John Ackley
command line you see the instructions to build a display sent to the browser on browser you see how browser reacted to those instructions sfantar wrote: sfantar a écrit : Charles K. Clarkson a écrit : sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Te

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread Mr. Shawn H. Corey
On Tue, 2006-20-06 at 11:49 +0200, sfantar wrote: > Why are there differences between the output of the CGI mentioned below > which displays the content of $ENV{HOME} et $ENV{PATH}? CGIs are forked off of the web server, which normally runs under a different user. Add these lines to your CGI t

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
sfantar a écrit : Charles K. Clarkson a écrit : sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Template->new() : Cannot open included file test.tmpl : : file not found. Looks like the template cannot be found. Use the full path to test.tmpl in

Re: CGI script not showing the textbox

2006-06-14 Thread Chad Perrin
On Wed, Jun 14, 2006 at 09:50:19AM +0530, Nath, Alok (STSD) wrote: > Hi, > Need some help to run this script. [snip] > print q("Please select: ",textfield ("flavour", "mint")) ; [snip] > What I was expecting is a textbox, instead of this string. > "Please select:

Re: CGI script not showing the textbox

2006-06-14 Thread Prabu Ayyappan
On 6/14/06, Nath, Alok (STSD) <[EMAIL PROTECTED]> wrote: Hi, Need some help to run this script. #!/usr/bin/perl -w use CGI qw(:standard); my $favourite = param("flavour") ; print header; # here's a comment. print the header print start_html("Alok's Page") , h1(" Paragraph...

CGI script not showing the textbox

2006-06-13 Thread Nath, Alok (STSD)
Hi, Need some help to run this script. #!/usr/bin/perl -w use CGI qw(:standard); my $favourite = param("flavour") ; print header; # here's a comment. print the header print start_html("Alok's Page") , h1(" Paragraph... !") ; if ($favourite) { print q("Your favourite is

Re: What are the problems with my CGI script

2006-06-06 Thread Anthony Ettinger
my $name = param('name') || ''; if(defined $name) { # if its valid , HTMLescape it and print it # otherwise tell them they did bad :) } else { # ask them for theri name } definitely the better way to handle it, although you don't need the || unless you want a default value.

Re: What are the problems with my CGI script

2006-06-06 Thread JupiterHost.Net
Anthony Ettinger wrote: my $name = param('name') || ''; if(defined $name) { # if its valid , HTMLescape it and print it # otherwise tell them they did bad :) } else { # ask them for theri name } definitely the better way to handle it, although you don't need the || unles

Re: What are the problems with my CGI script

2006-06-06 Thread JupiterHost.Net
Hello, Use of uninitialized value in concatenation (.) or string at cgi_7.pl line 31. This is your name Use of uninitialized value in concatenation (.) or string at cgi_7.pl line 35. Line 31 and 35 are using data that in uninitialized. For instance calling param() on a parameter that has not

RE: What are the problems with my CGI script

2006-06-06 Thread Smith, Derek
>Dear Dr. Ruud, > >Thanks it works. I change this line into: > >my $name = ($query_obj->param('text_field') or ' '); >But I am not sure why I need to add the (or ''). I >see nowhere in CGI.pm talking about it. Can you >explain it in a liitle bit detail? Also what am I >supposed to do if

Re: What are the problems with my CGI script

2006-06-06 Thread chen li
--- "Dr.Ruud" <[EMAIL PROTECTED]> wrote: > chen li schreef: > > > my $name=$query_obj->param('text_field'); > > print $query_obj->p,"This is your name $name", > > "\n\n"; #line31 > > [...] > > Use of uninitialized value in concatenation (.) or > > string at cgi_7.pl line 31. > >my $name

Re: What are the problems with my CGI script

2006-06-06 Thread Dr.Ruud
chen li schreef: > my $name=$query_obj->param('text_field'); > print $query_obj->p,"This is your name $name", > "\n\n"; #line31 > [...] > Use of uninitialized value in concatenation (.) or > string at cgi_7.pl line 31. my $name = ($query_obj->param('text_field') or 'Joe?'); -- Affijn, Ruu

RE: What are the problems with my CGI script

2006-06-05 Thread Charles K. Clarkson
chen li wrote: : I just try a small CGI script. Although it displays no : problem on the webpage there are two small errors in : the script. I wonder if anyone here can help me figure : out. [snip helpful code] : my $name=$query_obj->param('text_field'); : print $query_obj->

What are the problems with my CGI script

2006-06-05 Thread chen li
Dear all, I just try a small CGI script. Although it displays no problem on the webpage there are two small errors in the script. I wonder if anyone here can help me figure out. And here is the script: #!c:/Perl/bin/perl.exe use warnings; use strict; use CGI; my $query_obj=CGI->new(); #cr

Re: Looking for strategy advice for perl based cgi script

2006-05-18 Thread JupiterHost.Net
Wijaya Edward wrote: Dear expert, Hello, I have the intention to write a Perl based CGI script that does the following steps: 1. Take user input - including email - with a CGI script (mail_result.cgi). make sure they don't try to spoof the input and send mail to zillions of p

Looking for strategy advice for perl based cgi script

2006-05-18 Thread Wijaya Edward
Dear expert, I have the intention to write a Perl based CGI script that does the following steps: 1. Take user input - including email - with a CGI script (mail_result.cgi). 2. Based on these input param, submit a long running Perl script (compute_price.pl) on the background 3. Email

RE: Execute commands on the servers through a cgi script

2005-01-09 Thread Frank D. Gunseor
-Original Message- From: Manav Mathur [mailto:[EMAIL PROTECTED] Sent: Sunday, January 09, 2005 2:29 AM To: beginners@perl.org Subject: RE: Execute commands on the servers through a cgi script Norton AntiVirus deleted the following email message because it was infected with a virus

RE: Execute commands on the servers through a cgi script

2005-01-09 Thread Manav Mathur
through a cgi script | | |Hi guys... |I've being trying to do so... but I just can't get it done... I'm trying |to execute a command through a CGI... For example... the user types in a |textfield: /bin/date -s 20050427, then submmit. This command is sent to |the server, and the date

Execute commands on the servers through a cgi script

2005-01-08 Thread diogo . senai
Hi guys... I've being trying to do so... but I just can't get it done... I'm trying to execute a command through a CGI... For example... the user types in a textfield: /bin/date -s 20050427, then submmit. This command is sent to the server, and the date is changed... I can't get it done... any idea

Re: executing a .cgi script (passing some arguments) through php

2004-12-22 Thread JupiterHost.Net
Exactly, i am forced to do that :) bummer :) I'd say search on php.net for "system". Executing perl in PHP would be the same as executing a C program or Python or Java, etc... So its not really a Perl question -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: executing a .cgi script (passing some arguments) through php

2004-12-22 Thread John
- Original Message - From: "JupiterHost.Net" <[EMAIL PROTECTED]> To: "Perl Beginners" Sent: Wednesday, December 22, 2004 5:32 PM Subject: Re: executing a .cgi script (passing some arguments) through php > > > John wrote: > > > Has anyone tr

Re: executing a .cgi script (passing some arguments) through php

2004-12-22 Thread JupiterHost.Net
John wrote: Has anyone tried that? Hmm, No I haven't . have you? My question would be "why"? Its kind of like driving a king around in a Pinto. Why use crappy old PHP to execute Perl to do the real work? Just use Perl instead of PHP . Assuming you're being forced at gun point to do it that wa

executing a .cgi script (passing some arguments) through php

2004-12-22 Thread John
Has anyone tried that?

RE: CGI script just stops...

2004-07-21 Thread Marcos . Rebelo
;join($FindBin::Bin, $listfn)) Hop can help Marcos > -Original Message- > From: Bryan Harris [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 8:02 AM > To: Beginners Perl > Subject: CGI script just stops... > > > > > This one baffles

CGI script just stops...

2004-07-21 Thread Bryan Harris
This one baffles me: > print "$listfn, I guess we got here.\n"; > > # write additions to their file > open(LISTFILE, ">>$listfn") || print "$listfn could not be > written: $!\n"; > print LISTFILE join("\n", @newlist, "&qu

Re: Passing httpd auth details to cgi-script

2004-06-24 Thread JupiterHost.Net
Is it possible to get the authentication details and pass them to the scripts so they can be passed to postgres so PG can then authenticate without further user input (pg is using md5 auth) $ENV{REMOTE_USER} has the username. The password is a bit trickier since its not usually automatically sent

Passing httpd auth details to cgi-script

2004-06-24 Thread mike
Is it possible to pass user/password from apache auth to cgi-scripts. To explain I have apache set to authenticate using htpasswd, checking a file in /etc/httpd When users access the site they get a user/password prompt This then leads to a bunch of cgi-scripts which access DBI::DBDpg Is it po

Re: uploading fiels from one unix server to another server usin perl cgi script.

2004-02-03 Thread Eternius
Nilay Puri wrote: No takers ?? :( Hi all, I have a task at hand , that of uplaoding file from server to another server and also pass 6 paramteres along with the file. Basically, I have to replicate the functionality provided by CFHTTP tag of COLD FUSION. I used LWP::UserAgent for the purpose. M

uploading fiels from one unix server to another server usin perl cgi script.

2004-02-02 Thread Nilay Puri, Noida
No takers ?? :( > Hi all, > > I have a task at hand , that of uplaoding file from server to another > server and also pass 6 paramteres along with the file. > > Basically, I have to replicate the functionality provided by CFHTTP tag of > COLD FUSION. > > I used LWP::UserAgent for the purpose.

uploading fiels from one unix server to another server usin perl cgi script.

2004-01-31 Thread Nilay Puri, Noida
Hi all, I have a task at hand , that of uplaoding file from server to another server and also pass 6 paramteres along with the file. Basically, I have to replicate the functionality provided by CFHTTP tag of COLD FUSION. I used LWP::UserAgent for the purpose. My Program is given below. #!usr/lo

Re: CGI Script Fork

2003-11-22 Thread James Taylor
#x27;t count. If, on the other hand, you really need to fork a background task, you may be thwarted by the apache perl cgi module that keeps the perl interpreter in apache instead of forking a new perl for every cgi script. I do not know if you can fork a background task with perl-cgi-mod or

CGI Script Fork

2003-11-22 Thread Robert Brown
t. If, on the other hand, you really need to fork a background task, you may be thwarted by the apache perl cgi module that keeps the perl interpreter in apache instead of forking a new perl for every cgi script. I do not know if you can fork a background task with perl-cgi-mod or not. James Tay

CGI Script Fork

2003-11-21 Thread James Taylor
I'm working on a cgi script that basically, upon running it, runs a separate script in the background, and displays a message saying "Script is running. Should be done soon." on the web browser and... that's it. The browser can be closed, and the script will continue to r

Re: Browser wants to do a file download on a CGI script

2003-09-14 Thread R. Joseph Newton
Ron Goral wrote: > Please do not bother to read that obnoxious amount of code. I found my > error: > > print qq[dgCartAdmin::SaveChanges - $h_self{sqlstmt}];# if > $h_self{debug}; > > rather than > > print qq[dgCartAdmin::SaveChanges - $h_self{sqlstmt}] if > $h_self{debug}; > > This print stateme

Re: Browser wants to do a file download on a CGI script

2003-09-14 Thread R. Joseph Newton
curs only in the confirmation branch, I would recommend that you look at the GetConfirmConfigScreen() function. > > #HOWEVER, THIS "HERE DOCUMENT" DOES NOT PRINT TO SCREEN. INSTEAD, THE USER Please! You can have our attention without shouting. > > #IS PROMPTED TO EITHER SAVE O

RE: Browser wants to do a file download on a CGI script

2003-09-13 Thread Ron Goral
l Beginners' Subject: Re: Browser wants to do a file download on a CGI script Ron Goral wrote: > > > sub main > { > # > Debugging # >

RE: Browser wants to do a file download on a CGI script

2003-09-13 Thread Ron Goral
ECTED] Sent: Saturday, September 13, 2003 8:00 PM To: 'Ron Goral'; 'Perl Beginners' Subject: RE: Browser wants to do a file download on a CGI script Ron Goral <[EMAIL PROTECTED]> wrote: : the error does not occur until the script calls itself : to save some settings to a d

  1   2   >