Re: PERL CGI SCRIPT killed by apache on client abort

2011-03-28 Thread Peter Scott
On Sat, 26 Mar 2011 15:56:08 +0100, Przemysław Rejf wrote: > My upload script which uses upload hook works really nice. After the > upload ends it writes some debug stuff to log file and sends some info > to other host. > When client aborts the upload the reminder of the script a

Re: PERL CGI SCRIPT killed by apache on client abort

2011-03-27 Thread Mike Williams
2011/3/26 Przemysław Rejf : > Hi, > My upload script which uses upload hook works really nice. After the upload > ends it writes some debug stuff to log file and sends some info to other > host. > When client aborts the upload the reminder of the script after hook is not > exe

PERL CGI SCRIPT killed by apache on client abort

2011-03-27 Thread Przemysław Rejf
Hi, My upload script which uses upload hook works really nice. After the upload ends it writes some debug stuff to log file and sends some info to other host. When client aborts the upload the reminder of the script after hook is not executed and i get an error in my apache log: [Sat Mar 26

Re: Need help with a login script

2010-01-09 Thread Adam Jimerson
Thanks that did the trick. Robert Roggenbuck wrote: > At first assure that the correct values come from the database (see > below). May be that's enough... > > Greetings > > Robert > > > Adam Jimerson schrieb: > [snip] >> if (param) { >> form_verify (@user); >> print "Username: $user[0]\nPass

Re: Need help with a login script

2010-01-08 Thread Robert Roggenbuck
At first assure that the correct values come from the database (see below). May be that's enough... Greetings Robert Adam Jimerson schrieb: [snip] if (param) { form_verify (@user); print "Username: $user[0]\nPassword: $user[1]\n"; #use for debugging my $sth = $dbh->pr

Need help with a login script

2010-01-08 Thread Adam Jimerson
I know this topic is beaten to death, and then some, but I was wondering if someone could help me figure out what is wrong with my login script. No matter if I try to login with a valid credentals or not it says that the login has failed. I'm sure it has something to do with the way that

Re: script working from shell, but not from browser.

2009-12-21 Thread alexander simashin
The problem solved now. It is again(for me) selinux. When i disabled it - all began to work fine. It is freaking me out at work, when we began to install linuxe`s with kernel version 2.6(selinux was built in kernel from 2.6) or more i had big problems with this new software... > It drives me crazy

Re: script working from shell, but not from browser.

2009-12-21 Thread alexander simashin
2009/12/21 David Taiaroa > Hi Alexander, > > Is the LWP module in the same directory as the CGI module, and does it have > permissions 644? > Yes, folders CGI and LWP are in /usr/lib/perl5/vendor_perl/5.10.0 and permissions are 644.

Re: script working from shell, but not from browser.

2009-12-20 Thread alexander simashin
> > Hi Alexander, > > Since both scripts work on our server, and not yours, all I can think of is > that it's something specific to your server environment. > I think that too, but can`t understand where is the problem :(. 2009/12/19 David Taiaroa > Does something simple like this work for you?

Re: script working from shell, but not from browser.

2009-12-19 Thread alexander simashin
So it is time for an easy example script. i wrote this little example maybe it will be clearly describe my problem. I did not use any files or something for no more possible problems with permissions. *#!/usr/bin/perl use CGI ; use strict; use warnings; use Data::Dumper; use CGI::Carp

Re: script working from shell, but not from browser.

2009-12-19 Thread alexander simashin
2009/12/19 David Taiaroa > > When you run a script from shell it's probably as user 'you'. > When the script runs from a browser, it will be as user 'www' or something > similar, with restricted permissions. Your shell user will have more > permis

Re: script working from shell, but not from browser.

2009-12-19 Thread David Taiaroa
Hi, When you run a script from shell it's probably as user 'you'. When the script runs from a browser, it will be as user 'www' or something similar, with restricted permissions. Your shell user will have more permissions, so you might want to look at file permissions.

script working from shell, but not from browser.

2009-12-18 Thread simas...@gmail.com
so, i got some script with LWP and CGI using. When run this script from shell - everything is ok, i got response with data i need from the site. But, when i run this script from browser i get error 500 -> "Can't connect to www.something.com:80 (connect: Permission denied)". I ca

Re: Saving param after new recall of a cgi script

2009-12-01 Thread Rene Schickbauer
Marek wrote: Hi! How do I save the parameters from the first input? I tried everything, but there is nothing kept in my array. Do I have to save these parameters into an external file? You could also use Storable & Base64 to encode your data structure into a Base64 string. Put this string in

Re: Saving param after new recall of a cgi script

2009-11-28 Thread Marek
On 27 Nov., 10:42, rrogg...@uni-osnabrueck.de (Robert Roggenbuck) wrote: > You should store the values from step 2 at step 3 in hidden parameters ( type="hidden" ...>). The You can access them via CGI in step 4. > > An alternative would be storing the whole CGI-object in a file using > Data::Dumper

Re: Saving param after new recall of a cgi script

2009-11-27 Thread Greg Jetter
on="send") The > parameters are send with an self reference to the same "xyz.cgi". This > script examines with several routines the user-input. If everything is > alright the script is sending back a > 3. confirmation page, which is containing also a form, but only

Re: Saving param after new recall of a cgi script

2009-11-27 Thread Robert Roggenbuck
Robert Marek schrieb: Hello all! Hope that I can explain my problem clearly: 1. I have a long form, created from a "xyz.cgi" (action="" that means is empty) 2. The user fills up the form and sends (action="send") The parameters are send with an self reference to

Saving param after new recall of a cgi script

2009-11-27 Thread Marek
Hello all! Hope that I can explain my problem clearly: 1. I have a long form, created from a "xyz.cgi" (action="" that means is empty) 2. The user fills up the form and sends (action="send") The parameters are send with an self reference to the same "

Re: Sending intermediate response for a long running cgi script

2009-01-27 Thread Sean Davis
On Tue, Jan 27, 2009 at 12:56 AM, Tim Bowden wrote: > I've got a cgi script that will on occasion run for some time (exactly > how long I'm not sure yet...) and I'd like to return a "processing > please wait" type response to the web client if/when a certain time

Re: Sending intermediate response for a long running cgi script

2009-01-27 Thread Peter Scott
On Tue, 27 Jan 2009 14:56:39 +0900, Tim Bowden wrote: > I've got a cgi script that will on occasion run for some time (exactly > how long I'm not sure yet...) and I'd like to return a "processing > please wait" type response to the web client if/when a certain

Sending intermediate response for a long running cgi script

2009-01-26 Thread Tim Bowden
I've got a cgi script that will on occasion run for some time (exactly how long I'm not sure yet...) and I'd like to return a "processing please wait" type response to the web client if/when a certain time limit has passed, then have the final result sent back when the pro

Re:[SOLVED] embedding a CGI script in a HTML page?

2008-12-16 Thread Adam Jimerson
"Some information"; print ""; I guess that I was doing something wrong because it is working now thank you for the help >> - From what I see in the tutorial, >> >> http://template-toolkit.org/docs/tutorial/Web.html#section_Dynamic_Content_Generation_Via_CGI_Script >> , &

Re: embedding a CGI script in a HTML page?

2008-12-16 Thread David Dorward
Adam Jimerson wrote: Correct me if I am wrong but these template systems seem to only handle output from the CGI script, which would be nice if my scripts only handled output but they also need user input 1. Browser sends input data to server 2. Server sends input data to program using CGI

Re: embedding a CGI script in a HTML page?

2008-12-16 Thread David Dorward
element in Perl). - From what I see in the tutorial, http://template-toolkit.org/docs/tutorial/Web.html#section_Dynamic_Content_Generation_Via_CGI_Script, the Templete Toolkit only outputs information from the script, but I need it to handle input as well You use Perl to handle the input. TT i

Re: embedding a CGI script in a HTML page?

2008-12-16 Thread Adam Jimerson
not sure TT is what you want. >>> >>> If you want to run perl code from within a html tags that's not possible >>> as far as I know. You could use Greg's suggestion of >>> http://perl.apache.org/embperl/ or use AJAX to call your perl cgi >>> s

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Mike Williams
to generate the output with a cgi program, the cgi program has to generate *all* of the output. Having the cgi program generate all of the output, and having it use your style sheet can resolve your problem. > >> I have the page generated by my CGI script inside another page that is &g

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Adam Jimerson
xt/html the CGI.pm generates into a page where I do have my style at. >> I have the page generated by my CGI script inside another page that is >> using my CSS. I've tried to have my CGI script directly handle my CSS >> but it didn't work due to its limited support for

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Greg Jetter
a html tags that's not possible > > as far as I know. You could use Greg's suggestion of > > http://perl.apache.org/embperl/ or use AJAX to call your perl cgi > > scripts. But if you insist that you want to put you code in the page > > then you really want ?php &

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread David Dorward
Adam Jimerson wrote: I'm not trying to put perl code into the page, they way I have it now is I have the page generated by my CGI script inside another page that is using my CSS. I've tried to have my CGI script directly handle my CSS but it didn't work due to its limited suppo

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Mike Williams
last browser to support it. It >>> may just be that I'm new to CGI so I'm having to take what I am >>> learning >>> and throw it out the window? >> Your first question was: > Is it possible to embed a CGI scrip into a HTML page? Now you say: > I&

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Sean Davis
On Sun, Dec 14, 2008 at 10:01 PM, Adam Jimerson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mike Williams wrote: >> On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson wrote: >>> On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: >>> >>> Are you talking about this, >>> htt

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Adam Jimerson
use AJAX to call your perl cgi > scripts. But if you insist that you want to put you code in the page > then you really want ?php > > Dp. > > I'm not trying to put perl code into the page, they way I have it now is I have the page generated by my CGI script inside another

RE: embedding a CGI script in a HTML page?

2008-12-15 Thread Dermot Paikkos
> -Original Message- > > > > http://www.template-toolkit.org/ > > > > Mike > > Looking at the website and the documentation, still reading through it, > I'm still not sure how to mix this with my CGI scripts to make them > look > like the rest of the site even though Konqueror supports th

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Adam Jimerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Williams wrote: > On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson wrote: >> On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: >> >> Are you talking about this, >> http://search.cpan.org/~abw/Template-Toolkit-2.20/lib/Template.pm? >> I

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Sean Davis
On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson wrote: > On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: >> >> You cannot put perl in a webpage the way that you do with PHP. >> However, there are a number of template engines written for and in >> perl that give you similar features.

Re: embedding a CGI script in a HTML page?

2008-12-14 Thread Mike Williams
On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson wrote: > On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: > > Are you talking about this, > http://search.cpan.org/~abw/Template-Toolkit-2.20/lib/Template.pm? > If so it doesn't really say what it is for I am completely lost in how > to

Re: embedding a CGI script in a HTML page?

2008-12-14 Thread Adam Jimerson
On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: > > You cannot put perl in a webpage the way that you do with PHP. > However, there are a number of template engines written for and in > perl that give you similar features.  Take a look at Template Toolkit, > as an example. > > Sean A

Re: embedding a CGI script in a HTML page?

2008-12-14 Thread David Dorward
an iframe, but less well supported. > The reason why I posted is because I wanted my page to look like this > http://vendion.dyndns.org/guestbook.html as opposed to the basic white > page when viewed through /cgi-bin/guestbook.cgi. Change the script to use a template that matches the design

Re: embedding a CGI script in a HTML page?

2008-12-14 Thread Adam Jimerson
On Dec 12, 2:37 pm, g...@lazymountain.com (Greg Jetter) wrote: > On Thursday 11 December 2008 1:42:36 pm Adam Jimerson wrote: > > > Is it possible to embed a CGI scrip into a HTML page?  I don't know if CGI > > scripts work in a way that allow for this, I know that in PHP this is > > possible, beca

Re: embedding a CGI script in a HTML page?

2008-12-14 Thread Sean Davis
On Thu, Dec 11, 2008 at 5:42 PM, Adam Jimerson wrote: > Is it possible to embed a CGI scrip into a HTML page? I don't know if CGI > scripts work in a way that allow for this, I know that in PHP this is > possible, because I want to make my CGI scripts and website have a unified > look but I ca

Re: embedding a CGI script in a HTML page?

2008-12-12 Thread Greg Jetter
On Thursday 11 December 2008 1:42:36 pm Adam Jimerson wrote: > Is it possible to embed a CGI scrip into a HTML page? I don't know if CGI > scripts work in a way that allow for this, I know that in PHP this is > possible, because I want to make my CGI scripts and website have a unified > look but I

embedding a CGI script in a HTML page?

2008-12-12 Thread Adam Jimerson
Is it possible to embed a CGI scrip into a HTML page? I don't know if CGI scripts work in a way that allow for this, I know that in PHP this is possible, because I want to make my CGI scripts and website have a unified look but I can't get my CSS to work in any of my scripts. -- "We must plan

Re: awk command in script?

2008-11-21 Thread John W. Krahn
Owen wrote: You need to run something like this. Adapt to your requirements #!/usr/bin/perl -w use strict; while () { my $line = $_; if ( $line =~ /QQQ/ ) { my @bits = split; print "$bits[$#bits -1]\n";

Re: awk command in script?

2008-11-21 Thread marys
On Nov 21, 4:47 pm, [EMAIL PROTECTED] (Owen) wrote: > On Fri, 21 Nov 2008 03:41:21 -0500 > > > > > > "michael spellman" <[EMAIL PROTECTED]> wrote: > > On Thu, Nov 20, 2008 at 8:32 PM, Owen <[EMAIL PROTECTED]> wrote: > > > > On Thu, 20 Nov 2008 06:32:51 -0800 (PST) > > > marys <[EMAIL PROTECTED]> wr

Re: awk command in script?

2008-11-21 Thread marys
On Nov 20, 4:58 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > marys wrote: > > Hello: > > Hello, > > > Does anyone know how to use ‘awk’ in a script? > > perl and awk have a lot of similar features so its usually preferable to > use perl in a perl program ins

Re: awk command in script?

2008-11-21 Thread Owen
On Fri, 21 Nov 2008 03:41:21 -0500 "michael spellman" <[EMAIL PROTECTED]> wrote: > On Thu, Nov 20, 2008 at 8:32 PM, Owen <[EMAIL PROTECTED]> wrote: > > > On Thu, 20 Nov 2008 06:32:51 -0800 (PST) > > marys <[EMAIL PROTECTED]> wrote: > > I am not altogether certain what you are trying to achieve.

Re: awk command in script?

2008-11-20 Thread Owen
On Thu, 20 Nov 2008 06:32:51 -0800 (PST) marys <[EMAIL PROTECTED]> wrote: > Hello: > Does anyone know how to use ‘awk’ in a script? It must have a > different syntax than the unix analog, as does the ‘grep’ command. > For grep, the syntax in the c-shell is: > “grep ‘strin

Re: awk command in script?

2008-11-20 Thread John W. Krahn
marys wrote: Hello: Hello, Does anyone know how to use ‘awk’ in a script? perl and awk have a lot of similar features so its usually preferable to use perl in a perl program instead of awk. It must have a different syntax than the unix analog, as does the ‘grep’ command. For grep, the

awk command in script?

2008-11-20 Thread marys
Hello: Does anyone know how to use ‘awk’ in a script? It must have a different syntax than the unix analog, as does the ‘grep’ command. For grep, the syntax in the c-shell is: “grep ‘string’ , but for Perl the delimiters are slashes: $x = grep / string/ line. Maybe the same thing is going on with

Re: Adding CSS to a CGI script

2008-11-18 Thread vendion
On Nov 8, 12:35 pm, [EMAIL PROTECTED] (Bill Stephenson) wrote: > On Nov 8, 2008, at 10:39 AM, Adam Jimerson wrote: > > > start_html > > This is from the CGI docs: > >     print start_html(-title=>'Secrets of the Pyramids', >                              -author=>'[EMAIL PROTECTED]', >              

Re: Premature end of script headers

2008-11-16 Thread Adam Jimerson
"Mike Williams" wrote: >> [EMAIL PROTECTED] wrote: >> > Hello, >> > >> > i need to know the reasons for this error "Premature end of script >> > headers" i checked with my http header content-type:text/html ,but i >> > ha

Re: Adding CSS to a CGI script

2008-11-08 Thread Bill Stephenson
On Nov 8, 2008, at 10:39 AM, Adam Jimerson wrote: start_html This is from the CGI docs: print start_html(-title=>'Secrets of the Pyramids', -author=>'[EMAIL PROTECTED]', -base=>'true', -target=>'_blank',

Adding CSS to a CGI script

2008-11-08 Thread Adam Jimerson
I am curious about adding CSS to a CGI script, lets say that this is my script ~~~ #!/usr/bin/perl use warnings; use strict; use CGI qw(:standard); print header(), start_html("Add Me"); print h1("Add Me"); if(param()) { my $n1 = param('field1'); my $n2 = p

Re: how to send a page and a file at a download script?

2008-09-23 Thread Greg Jetter
On Monday 22 September 2008 12:38:21 pm shnaxe wrote: > dear readers, > > i recently finished a small perl-cgi download script that sends files > after some checks and logging. i call this script through a link on a > static html-page and pass the file-id as a parameter. > > t

Re: how to send a page and a file at a download script?

2008-09-23 Thread Wiggins d'Anconia
shnaxe wrote: > dear readers, > > i recently finished a small perl-cgi download script that sends files > after some checks and logging. i call this script through a link on a > static html-page and pass the file-id as a parameter. > > this all works nice so far, the part

how to send a page and a file at a download script?

2008-09-23 Thread shnaxe
dear readers, i recently finished a small perl-cgi download script that sends files after some checks and logging. i call this script through a link on a static html-page and pass the file-id as a parameter. this all works nice so far, the part where i'm stuck at is that with clicking o

Re: FormMail within a CGI Script

2008-09-20 Thread Randal L. Schwartz
> "Mike" == Mike Flannigan <[EMAIL PROTECTED]> writes: This is Perl... Mike> sub redirectmail { Mike> print header, Mike>start_html('Mail Info'), Mike>h1('Mail Info'), But this isn't... Mike> ACTION="http://somewebhost/forms?login=myusername&to=myaddress&confirm=confirm

FormMail within a CGI Script

2008-09-20 Thread Mike Flannigan
Within a "start_html" block in a CGI script I do this: button(-name=>'button_name', -value=>'I have info to contribute', -onClick=>"redirectmail()"), In "redirectmail()" is have: sub redirectmail

Re: Perl CGI script running as root is unable to do rm, chmod and su

2008-07-16 Thread Wijnand Wiersma
Jimisola Laursen schreef: > Hi! > > I'm trying make one script (script1) call another script (script2) and > have the output from script2 returned. > My initial problem was that script2 needs to be executed as root, so > I've set the setuid and setgid bit on script1 (sc

Re: Perl CGI script running as root is unable to do rm, chmod and su

2008-07-16 Thread Jimisola Laursen
Hi, Sorry, I was not clear enough. No the scripts are executed as root. I've verified it since the output contains: USER: root USER in script2: root Regards, Jimisola Wijnand Wiersma wrote: Jimisola Laursen schreef: Hi! I'm trying make one script (script1) call another scrip

Perl CGI script running as root is unable to do rm, chmod and su

2008-07-16 Thread Jimisola Laursen
Hi! I'm trying make one script (script1) call another script (script2) and have the output from script2 returned. My initial problem was that script2 needs to be executed as root, so I've set the setuid and setgid bit on script1 (script2 unchanged): -rwsrwsrwx 1 root bin

Re: Include PHP file inside the cgi script

2008-05-28 Thread Peter Scott
On Mon, 26 May 2008 09:47:09 +0530, sivasakthi wrote: > Is it possible to include php file inside the cgi script?? > > I need defined php variable (from php files) inside the cgi script.. > > how can i achieve that?? Read the PHP file in as ordinary text, look for the vari

Ответ: Include PHP file inside the cgi script

2008-05-26 Thread Aydar Khabibullin
http://search.cpan.org/~esummers/PHP-Include-0.2/lib/PHP/Include.pm 2008/5/26, sivasakthi <[EMAIL PROTECTED]>: > Hi all, > > > Is it possible to include php file inside the cgi script?? > > I need defined php variable (from php files) inside the cgi script.. &g

Include PHP file inside the cgi script

2008-05-25 Thread sivasakthi
Hi all, Is it possible to include php file inside the cgi script?? I need defined php variable (from php files) inside the cgi script.. how can i achieve that?? Thanks, Siva

Re: Fwd: how to refresh between different pages of the same script

2008-04-08 Thread Jenda Krynicky
From: "Pau Marc Munoz Torres" <[EMAIL PROTECTED]> > #! /usr/bin/perl > #use strict; > use CGI::Ajax; > use CGI; > > my $q = new CGI; > > my $concatter = sub { > > my $buffer = $ENV{'QUERY_STRING'}; > > my @pairs = split( /&/, $buffer ); > > foreach my $pair (@pairs) { > >

how to refresh between different pages of the same script

2008-04-08 Thread Pau Marc Munoz Torres
I have to modify a script to upload different data to a server, until now i did and script that ask you a question and capture the variable into a hash (see below), now, i would like to modify it and make something that allows me to ask different questions using the same script how can i do

Fwd: how to refresh between different pages of the same script

2008-04-08 Thread Pau Marc Munoz Torres
I have to modify a script to upload different data to a server, until now i did and script that ask you a question and capture the variable into a hash (see below), now, i would like to modify it and make something that allows me to ask different questions using the same script how can i do

Re: Premature end of script header error....

2007-10-25 Thread Hoenie Luk
Hi David, This may be just a shot in the dark, but I was dealing with the same "Premature end of header" error just a few days ago. It just so happen I neglected to place the correct path of perl.exe on the top of the cgi script before I ftp it to my web host. You know? The line

Re: Premature end of script header error....

2007-10-24 Thread Joerg Keller
t;the premature end of header" is not the reason the script crashed for, is it only an hint, that a header was still open in the moment the exit. so, do not check only the last line but also all lines above with the same timestamp as the header-message. good luck m -- To unsubscribe, e-ma

Re: Premature end of script header error....

2007-10-24 Thread David Moreno Garza
On Wed, 2007-10-24 at 03:46 -0700, nexis wrote: > This is a piece of code to print a graph object. > > > > ... >print "content-type: image/$graph_format\n\n"; > binmode STDOUT; > print $img_obj; > ... > > This code works fine for me and I am able to see the g

Premature end of script header error....

2007-10-24 Thread nexis
This is a piece of code to print a graph object. ... print "content-type: image/$graph_format\n\n"; binmode STDOUT; print $img_obj; ... This code works fine for me and I am able to see the graph. But when the code goes on production server, it gives Intern

Re: Premature end of script headers

2007-06-13 Thread Mike Williams
a typo in the Add-Handler statement - you need a space between cgi-script and .exe: AddHandler cgi-script .exe Make sure you also have a Script-Alias for cgi-bin Mine looks like this: ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" The comments in the apache file contain important inform

Re: Premature end of script headers

2007-06-13 Thread saran . jegan
saravanan Jagadeesan <[EMAIL PROTECTED]> wrote: > > > Mike, > > > Thanks for your info mike , i got my script work by re-programming > > it in perl, but i need to know why its not running using C , whether it > > creates some memory problem > > Nothing

Re: Premature end of script headers

2007-06-13 Thread saran . jegan
Mike, > Hi there. Please do a reply to all to keep this on the list. Someone > else may be able to help, and someone else may be helped in the future > if it lands in the list archives. Sorry for that ... am using windows XP (windows 5.1) , am changed the http.conf file as per you

Re: Premature end of script headers

2007-06-12 Thread Mike Williams
ke , i got my script work by re-programming it in perl, but i need to know why its not running using C , whether it creates some memory problem Nothing you have said so far gives any indication of this being memory related. You didn't mention whether you checked your httpd.conf file as

Re: Premature end of script headers

2007-06-08 Thread Mike Williams
ng the same error (500) includinghello world my web server is apache 2.2.4 These are the lines i found in my error-log [Thu Jun 07 11:27:17 2007] [error] [client 192.168.10.160] Premature end of script headers: hello.exe, referer: http://192.168.10.160/hello.html by

Re: Premature end of script headers

2007-06-05 Thread Mike Williams
[EMAIL PROTECTED] wrote: > Hello, > > i need to know the reasons for this error "Premature end of script > headers" i checked with my http header content-type:text/html ,but i > had not solved yet.. Often this happens when some error occurs in your code before you

Re: Premature end of script headers

2007-06-05 Thread Sean Davis
[EMAIL PROTECTED] wrote: > Hello, > > i need to know the reasons for this error "Premature end of script > headers" i checked with my http header content-type:text/html ,but i > had not solved yet.. Check your error_log file on your server to see if you are generatin

Premature end of script headers

2007-06-05 Thread saran . jegan
Hello, i need to know the reasons for this error "Premature end of script headers" i checked with my http header content-type:text/html ,but i had not solved yet.. let me know your suggestions thanks for your time -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: END ing in a cgi script

2007-02-17 Thread Mumia W.
On 02/17/2007 06:46 PM, Mary Anderson wrote: The documentation wasn't very clear. Under mod_perl, the above will work only for Apache::Registry scripts. Otherwise execution of the END block will be postponed until the process terminates. If you write a handler in the Perl API use the register_c

Re: END ing in a cgi script

2007-02-17 Thread Mumia W.
On 02/16/2007 10:27 PM, Mary Anderson wrote: Hi all, My perl-cgi application creates some temporary files and a temporary table which I would like to clean up as I exit the program. I tried writing a perl END block, but found that did not work. It appeared that to the cgi interpreter END{

Re: END ing in a cgi script

2007-02-16 Thread Owen Cook
On Fri, Feb 16, 2007 at 08:27:38PM -0800, Mary Anderson wrote: > > Hi all, >My perl-cgi application creates some temporary files and a temporary > table which I would like to clean up as I exit the program. I tried > writing a perl END block, but found that did not work. It appeared that

END ing in a cgi script

2007-02-16 Thread Mary Anderson
Hi all, My perl-cgi application creates some temporary files and a temporary table which I would like to clean up as I exit the program. I tried writing a perl END block, but found that did not work. It appeared that to the cgi interpreter END{} had no special meaning and the code inside

Re: Using Net::Ping in a CGI script

2006-12-23 Thread Nathan Gibbs
* zentara wrote: > On Fri, 22 Dec 2006 13:17:33 -0500, [EMAIL PROTECTED] (Nathan > Gibbs) wrote: > > >> The current Problem: >> Net::Ping won't do icmp as a non root user. I RTM, which said that >> if I suid'ed ( Hmmm is that a word ?? )the script it

Using Net::Ping in a CGI script

2006-12-22 Thread Nathan Gibbs
The Program: I have a Perl script that reads a list of hosts from a file, uses Net::Ping to check them with the icmp protocol, then writes an HTML status report into a file on my apache server. This script is run every minute by cron. The Original Problem: I usually use the status

Timeout script

2006-11-09 Thread Allen Wang
Anyone knows how to write a timeout script using perl, basically I want to like this, * Use perl to connect to an oracle database * After 5 minutes cannot connect to the database through database listener, get a timeout message and email to a distribution list

Re: Script produces nothing when run from web page

2006-10-25 Thread Mumia W.
On 10/25/2006 01:23 AM, Richard Luckhurst wrote: Hi All I have a simple perl cgi script that works fine and produces the correct output when run from a command line. However when called as a cgi script from within a web page the script does not run correctly. The script is called log-errors

Re[2]: Script produces nothing when run from web page

2006-10-25 Thread Richard Luckhurst
o call tail and JK> tac. JK> I'd try putting the full path to these in the script. JK> /usr/bin/tail JK> /usr/bin/tac JK> instead of just tail and tac. JK> HTH, if not I am sure some guru will set you (and me) straight. JK> cheers JK> johnk JK> On Wed, 25 Oct 2006

Re: Script produces nothing when run from web page

2006-10-24 Thread John Kennedy
Hi , I am no expert but I would guess that cgi runs in a restricted environment and doesn't have a full PATH, thus it doesn't know how to call tail and tac. I'd try putting the full path to these in the script. /usr/bin/tail /usr/bin/tac instead of just tail and tac. HTH, i

Script produces nothing when run from web page

2006-10-24 Thread Richard Luckhurst
Hi All I have a simple perl cgi script that works fine and produces the correct output when run from a command line. However when called as a cgi script from within a web page the script does not run correctly. The script is called log-errors and is called as follows log-errors?domain

Re: cgi script to capture http headers

2006-09-28 Thread Beginner
Hi On 28 Sep 2006 at 17:21, Kaushal Shriyan wrote: > 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

cgi script to capture http headers

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:

RE: Perl script problem

2006-08-29 Thread Moore, George T.
tie(%mail); The line $mail{$email} = "$name|$comments"; is causing your problem. -Original Message- From: Joel Alvo [mailto:[EMAIL PROTECTED] Sent: Saturday, August 26, 2006 8:32 AM To: beginners-cgi@perl.org Subject: perl script problem Hi. I have some perl script attac

Re: perl script problem

2006-08-26 Thread Mumia W.
On 08/26/2006 10:32 AM, Joel Alvo wrote: Hi. I have some perl script attached that does not return anything when I click the link "see what others have to say". [...] I didn't execute your script, but this part intrigued me: sub create_comments_page { my (%mail

perl script problem

2006-08-26 Thread Joel Alvo
Hi. I have some perl script attached that does not return anything when I click the link "see what others have to say". When the link is clicked, from the html page, the cgi page is generated, without any data posted to it, and therefore, the last part of the cgi script is executed,

答复: [cgiapp] CGI Script to pass a file to different servers

2006-07-06 Thread Joodhawk Lin
scuss@perl.org; cgiapp@lists.erlbaum.net; beginners-cgi@perl.org 主题: Re: [cgiapp] CGI Script to pass a file to different servers On 7/6/06 3:00 PM, "I BioKid" <[EMAIL PROTECTED]> wrote: > Dear All, > > We have 3 inhouse web servers and 2 remote web servers. > All of this w

Re: [cgiapp] CGI Script to pass a file to different servers

2006-07-06 Thread Sean Davis
On 7/6/06 3:00 PM, "I BioKid" <[EMAIL PROTECTED]> wrote: > Dear All, > > 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 server will process it and gives > its respec

CGI Script to pass a file to different servers

2006-07-06 Thread I BioKid
Dear All, 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 server will process it and gives its respective results) Now, we are planning to integrate these 5 server in to a

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
s : -rwsr-xr-x The 's' means its effective UID is set. References: perldoc -f stat perldoc -f chmod perldoc perlvar (and search for '$<', '$>' ) > How about mod_perl? If I run under mod_perl a script, is this one forked > off as well? > I haven

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
. Add these lines to your CGI to see who is running the script: print "login: ", getlogin, \n"; print "uid: ", $<, "\n"; print "name: ", getpwuid($<), "\n"; These lines are very useful. I saw the differences between the outputs

  1   2   3   4   5   6   7   8   9   >