Hi,
It solved by putting this codes for flushing cgi output :
$|=1;
sleep 5;
It was suggested by someone.
Anyone can explain, what does $|=1 means?
kapot
--- Larry Coffin <[EMAIL PROTECTED]> wrote:
> >I was wondering if I can 'flush' the cgi operation, so in SAVE_CONFIG.PL
> >will be lik
I wrote a very simple cgi to change an IP address of a linux server.
First, user will get LOGIN.PL
LOGIN.PL will call EDIT_IP.PL
if user click 'Save', EDIT_IP.PL will call SAVE_CONFIG.PL
SAVE_CONFIG.PL will do these :
- modifying ip address configuration (/etc/sysconfig/...)
- calling exter
ript can't find "ifup" Are you calling it as ifup or /sbin/ifup?
>
> good luck!
>
> -peter
>
>
> -Original Message-
> From: Admin-Stress [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 10, 2002 1:29 PM
> To: perl cgi
> Subject: RE: can w
up on tainted variables, I think.
>
> perldoc perlsec
>
> The problem isn't that it is a CGI, pretty sure the problem is that it is setuid.
>
> http://danconia.org
>
> ----
> On Tue, 10 Dec 2002 07:20:16 -0800 (PST)
I got this error :
[error] [client 10.0.0.88] Insecure $ENV{PATH} while running setuid at
/var/www/cgi-bin/ifcfg_rh80.pl line 60., referer:
http://10.0.0.50/cgi-bin/editconfig.pl
And line 60 of ifcfg_rh80.pl is :
system("/sbin/ifdown $device");
sleep 2;
system("/sbin/ifup $device");
I
I dont know why, in my OTHER RedHat 8.0 installation, I cant find CGI.pm. I did
install perl5.8.0.
Anyone know how to install it? I looked in cpan, it seems it's default perl module.
And I cant
find any installer for it.
Is it OK if I just copy CGI.pm from cpan? into
/usr/lib/perl5/5.8.0/CGI.
wrote:
> You might want to just use redirect(), check perldoc CGI
>
> -
> Scot Robnett
> inSite Internet Solutions
> [EMAIL PROTECTED]
>
>
>
> -Original Message-
> From: Admin-Stress [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 09, 2002 2:42 PM
&
Hi,
Could someone check my code below? I need to redirect to a html using CGI.pm perl
module. But when
I executed, I got blank page. If I commented out $cgi->start_html ... it's working
fine, but no
redirection.
$cgi = new CGI;
sub Error {
my ($msg) = @_;
print "";
print "";
print " Err
Yupe, thanks, I forgot to reload the browser after I changed to POST method.
silly me!
Sorry for consuming your bandwidth.
thanks
--- "Kipp, James" <[EMAIL PROTECTED]> wrote:
> try using the POST method, instead of GET ?
__
Do you Yahoo!?
Yahoo! M
I made a simple html form to input a password field :
http://mydomain.homelinux.net/cgi-bin/login.pl";
method="GET">
Password :
And a cgi to compare that password :
#!/usr/bin/perl
use CGI;
print "Content-type: text/html\n\n";
$cgi = new CGI;
$upassword = $cgi->param('password');
$passwo
Hi,
How can I check cgi session? mmm .. maybe better I explain like this:
I just want to make a 'secure site' that need username and password. So, the first
page of my site
would be "fill in you username and password", for example, it will be placed here :
http://www.mydomain.com/login.html
Hi,
Anyone know any URL about libwww example / tutorial?
I cant find decent source. I just want to learn how to GET an ouput from a website and
parse the
output.
from one of example, I can print the output like this :
if ($res->is_success) {
print $res->content;
} else {
prin
Hi,
Here I got a code to upload file to a cgi running in a webserver :
#!/usr/bin/perl
use warnings;
use strict;
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
my $url ='http://www.mydomain.com/cgi-bin/upload.cgi';
my $file = 'testfile.dat';
my $ua = new LWP::UserAgent;
my $req = POST
Sorry, another out of topic.
Is it safe to use mySQL in cgi? I meant, if my update.pl perl cgi will do this :
connect to mysql database
insert into table values (values from FORM)
... other tasks ...
close
What happen if there are, let say 100 people accessing that perl cgi? I meant
Hi,
Maybe this is not so related with perl it self, but still ...
Is there any way to 'auto execute cgi' ? I meant, I have to trigger something (like
updating
database via perl) just after user viewed the html.
Thanks,
kapot
__
Do you Yahoo!?
Ho
Nice, but that will produce .exe, executable file for Windows :(
--- David Simcik <[EMAIL PROTECTED]> wrote:
> See perl2exe.exe for details on converting scripts into executables.
>
> -D
__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your
Hi,
I am new to perl cgi. I would like to ask (maybe a silly question) :
Is it possible to VIEW the source code of a perl cgi from a website?
For example, I wrote a perl cgi like this http://www.myweb.com/cgi-bin/addcustomer.pl
The purpose of that script is to add new customer into my MySQL dat
Please ensure your computers are virus free before sending attachments
through this mailing list. In the past 2 weeks I have received
notification from my Microtrend PC-cillin of no less than 6 worm/trojan
infected files sent through this group. If others on this list do not have
adequate virus
18 matches
Mail list logo