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
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
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
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
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
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
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
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.
>
> 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?
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
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
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.
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
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
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
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
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
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 "
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
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
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
"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
>> ,
&
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
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
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
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
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
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
&
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
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&
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
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
> -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
-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
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.
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
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
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
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
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
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
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
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";
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
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
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.
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
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
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
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]',
>
"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
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',
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
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
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
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
> "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
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
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
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
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
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
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
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
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) {
>
>
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
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
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
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
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
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
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
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
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
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
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
[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
[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
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
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
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{
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
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
* 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
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
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
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
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
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
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
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
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:
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
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
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,
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
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
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
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
. 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 - 100 of 815 matches
Mail list logo