[12848] in Perl-Users-Digest
Perl-Users Digest, Issue: 258 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jul 26 08:09:54 1999
Date: Mon, 26 Jul 1999 05:05:11 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 26 Jul 1999 Volume: 9 Number: 258
Today's topics:
Activestate problem with installing modules (Layout/Design)
Re: Activestate problem with installing modules <gellyfish@gellyfish.com>
Re: ARGV validation of command line options alexander.zinniker@trivadis.com
Re: Extracting plain text from email (Anno Siegel)
Re: Extracting plain text from email (Michael Rubenstein)
Re: Extracting plain text from email (Anno Siegel)
File Uploading <DarrenF@intro-uk.com>
Re: frames alexander.zinniker@trivadis.com
Re: Guru question: Regular Expression <kin@0011.com>
help with flock() portability (Stefano Ghirlanda)
How make .pl files executable? Is there a compiler? <mdimitrio@yahoo.com>
Re: How make .pl files executable? Is there a compiler? (elephant)
Mail::Mailer.pm problem <thierry.vandoninck@dexia.be>
Mail::Mailer.pm problem <thierry.vandoninck@dexia.be>
Re: Mail::Mailer.pm problem <buga@ipm.lviv.ua>
Re: Need installation help on Apache or PWS <massea@yahoooo.com>
Re: Outputting text as entered by user (Arul Singam)
Re: Perl Socket Problem <james.williamson@bbc.co.uk>
Re: Problem with generate the return html for browser c <massea@yahoooo.com>
Re: reg expression (r j huntington)
Re: remove records from database (Mike Bristow)
Special problem (Networking) specker@coop.rz.uni-frankfurt.de
Re: Special problem (Networking) <buga@ipm.lviv.ua>
Re: Stop parent but not child process <mail@netron.de>
Re: Telnet via CGI? johnwingfield@my-deja.com
Testing MSQL/Perl scripts at home with MS Access/Active (Layout/Design)
Re: Testing MSQL/Perl scripts at home with MS Access/Ac <rhrh@hotmail.com>
Re: Testing MSQL/Perl scripts at home with MS Access/Ac <james.williamson@bbc.co.uk>
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 26 Jul 1999 09:59:49 +0100
From: "Paul Foran (Layout/Design)" <Paul.Foran@analog.com>
Subject: Activestate problem with installing modules
Message-Id: <379C2385.2193DB29@analog.com>
Can somebody help. Is there a bin verion of Perl that comes with MSQL
and CGI modules pre installed?
paul.
------------------------------
Date: 26 Jul 1999 11:40:51 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Activestate problem with installing modules
Message-Id: <379c3b33@newsread3.dircon.co.uk>
Paul Foran (Layout/Design) <Paul.Foran@analog.com> wrote:
> Can somebody help. Is there a bin verion of Perl that comes with MSQL
> and CGI modules pre installed?
>
CGI.pm comes with all recent distributions of Perl and DBD::MySQL
is available from ActiveState for installation using PPM.
/J\
--
"Doctors, psychologists and animators have been called in to investigate"
- Channel 4 News
------------------------------
Date: Mon, 26 Jul 1999 09:01:24 GMT
From: alexander.zinniker@trivadis.com
Subject: Re: ARGV validation of command line options
Message-Id: <7nh852$3q9$1@nnrp1.deja.com>
For processing of command line parameters you can use Getopt:
#!/usr/bin/perl
use Getopt::Std; # or maybe Getopts::Std; sorry, don't have a
# Unix-Box here.
# getopt sets global vars beginning with "opt_"
# and then the name of the parameter: $opt_r
use vars qw($opt_r $opt_h opt_x);
getopts("r:hx:"); # r, h, x are your available options, if you
# specify r: the ":" means, that there should
# follow some input like ./bla -r myfile
Getopt does not check, if your parameters are set. So that should be
done by yourself. For further Information read the Manual for Getopt.
In article <379907cf.37145285@news.enteract.com>,
syarbrou@nospam.enteract.com (Steve .) wrote:
> say I have multiple options for a command lines. They can be used or
> not. How do I validate if they are there or not?
>
> For example:
>
> can use: progname -r -h -x infile outfile
>
> or can use progname or infile outfile
>
> or can ue progname infile outfile
>
> How do I do checking on what the user types in with these variations?
> Thanks.
>
> Steve
>
> Newsgroup replies preferred. Remove nospam from address when
> responding thru email.
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 26 Jul 1999 08:52:12 -0000
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: Extracting plain text from email
Message-Id: <7nh7js$72m$1@lublin.zrz.tu-berlin.de>
Michael Rubenstein <miker3@ix.netcom.com> wrote in comp.lang.perl.misc:
>On 25 Jul 1999 19:31:26 -0700, Tom Christiansen
><tchrist@mox.perl.com> wrote:
>
>[quotes elided]
>
>>Now listen. The right way to post it 200% reversed from what
>>I am demo'ing here. Do *not* quote the whole thing. Do *not*
>>forget to trim. Do *not* forget to interleave.
>
>Do not forget to recognize that others have as much right to
>their opinions as you have to yours.
Is it a matter of opinion that people read from top to bottom?
I know of no culture that does otherwise.
Is it a matter of opinion that it's easier to comprehend a reply
when you have just been reminded of what the reply is about?
I thought not.
Is it a matter of opinion that people get peeved when they scroll
down a whole slew of quoted material for additional comments and
find that there aren't any?
Myself, I get mightily peeved.
Is it a matter of opinion that people post to usenet with the
intention to have others read what they write?
I don't know about you, but I want to be read.
Is it a matter of opinion that quoting a whole article to add just
a few lines is a waste of bandwidth and human resources?
I didn't think so.
Is it a matter of opinion that a usenet article is written by one
person, but read by many?
Well, alt.Michael-Rubenstein.moderated may be a counterexample.
The posting style you continue to preach but, I am glad to see
no longer practice, makes things easy for the poster, but hard
for the readers. I call that lazy and rude. Talk about insult.
Anno
------------------------------
Date: Mon, 26 Jul 1999 10:47:15 GMT
From: miker3@ix.netcom.com (Michael Rubenstein)
Subject: Re: Extracting plain text from email
Message-Id: <37a436f5.26683548@nntp.ix.netcom.com>
On 26 Jul 1999 08:52:12 -0000, anno4000@lublin.zrz.tu-berlin.de
(Anno Siegel) wrote:
>Michael Rubenstein <miker3@ix.netcom.com> wrote in comp.lang.perl.misc:
>Is it a matter of opinion that people get peeved when they scroll
>down a whole slew of quoted material for additional comments and
>find that there aren't any?
>Myself, I get mightily peeved.
>
>Is it a matter of opinion that people post to usenet with the
>intention to have others read what they write?
>I don't know about you, but I want to be read.
>
>Is it a matter of opinion that quoting a whole article to add just
>a few lines is a waste of bandwidth and human resources?
>I didn't think so.
>
>Is it a matter of opinion that a usenet article is written by one
>person, but read by many?
>Well, alt.Michael-Rubenstein.moderated may be a counterexample.
It is a matter of opinion whether these things imply that
responses should come after quotes. This should be obvious from
the fact that some people disagree and do post responses first.
>
>The posting style you continue to preach but, I am glad to see
>no longer practice, makes things easy for the poster, but hard
>for the readers. I call that lazy and rude. Talk about insult.
When did I ever post a response before the quote? When did I
ever preach for this practice? As far as I can recall, I have
done neither.
THe point I have been trying to make, obviously with no success,
is summarized in the last paragraph of the article to which you
are responding:
You don't have to convince me that this is a better way
to post. I always put the quote before the response or
interleave and prefer it in messages I read. The
difference is that I recognize that others who are
intelligent and well meaning may hold different opinions.
Apparently respect for the opinions of others is too advanced a
concept for comp.lang.perl.misc.
This will be my last post here for a while. I can only take the
intolerance of this newsgroup in small doses and I've had enough.
------------------------------
Date: 26 Jul 1999 11:41:52 -0000
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: Extracting plain text from email
Message-Id: <7nhhi0$79s$1@lublin.zrz.tu-berlin.de>
Michael Rubenstein <miker3@ix.netcom.com> wrote in comp.lang.perl.misc:
>On 26 Jul 1999 08:52:12 -0000, anno4000@lublin.zrz.tu-berlin.de
>(Anno Siegel) wrote:
>It is a matter of opinion whether these things imply that
>responses should come after quotes. This should be obvious from
>the fact that some people disagree and do post responses first.
This proves nothing but the fact that some posters are lazy and
inconsiderate. Hardly news.
>>The posting style you continue to preach but, I am glad to see
>>no longer practice, makes things easy for the poster, but hard
>>for the readers. I call that lazy and rude. Talk about insult.
>
>When did I ever post a response before the quote? When did I
>ever preach for this practice? As far as I can recall, I have
>done neither.
If you never misplaced your reply before the quoted material
I apologize. It certainly looks like you are defending the
practice as a viable alternative. It isn't. It's against
common sense. It may not be totally obvious, but it's against
common sense nonetheless.
[snip]
>Apparently respect for the opinions of others is too advanced a
>concept for comp.lang.perl.misc.
Respect for the opinions of others is one thing. Condoning bad
habits is another.
>This will be my last post here for a while. I can only take the
>intolerance of this newsgroup in small doses and I've had enough.
Oh. So long, then.
Anno
------------------------------
Date: Mon, 26 Jul 1999 12:39:11 +0100
From: "Darren Ferguson" <DarrenF@intro-uk.com>
Subject: File Uploading
Message-Id: <932988592.9965.0.nnrp-04.d4f07397@news.demon.co.uk>
Hiya,
I'm uploading a file to a perl script using a multipart form.
All seems fine to a point. I split the items according to boundaries and
manage to put standard text/select/radio fields into an associative array
as per usual without any problems.
However.... Once i have isolated the file data along with its header
information i'm not sure how to parse it. I've tried a few sensible guesses
and always seem to have a character or two too many when i write the file to
my server.
So, what i'm asking is if anybody can provide me of a description of what
exactly is contained within the boundaries of a "file" input and how to
parse it. Any help would be much appreciated.
I'm afraid my provider will not allow me to use CGI.pm or CGI_lib.pl so its
gotta be straight perl i'm afraid
Cheers
Darren
------------------------------
Date: Mon, 26 Jul 1999 09:23:53 GMT
From: alexander.zinniker@trivadis.com
Subject: Re: frames
Message-Id: <7nh9f5$4hc$1@nnrp1.deja.com>
Yes. And its very easy, also if you want your script to generate the
content for all your frames. Your HTML-Source would be:
<frameset 50%,50%>
<frame src=/cgi-bin/yourcgi.cgi?f1 name=frame1>
<frame src=/cgi-bin/yourcgi.cgi?f2 name=frame1>
</frameset>
Your Perl script could look like this:
#!/usr/bin/perl
if ($ARGV[0] eq 'f1') {
# build frame1
print "content-type: text/html\n\n";
..
}
elsif ($ARGV[0] eq 'f2') {
#build frame2
print "content-type: text/html\n\n";
..
}
else {
# error
}
Of course you can also let your CGI script generate the main page which
defines your framesets (I wrote a script which, if it's called without
parameters - generates the main page, and is called with parameters
from each frame tag and then generates the content of the frames.)
In article <19990723215853.20895.00000868@ng-fe1.aol.com>,
jjcoparks4@aol.com (JJcoParks4) wrote:
> Hello I am trying to make a perl cgi script and I wan't part of it to
be in a
> frame. Is this posibble? And if so how the heck do I do it?
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Mon, 26 Jul 1999 04:44:15 -0700
From: Kin Lum <kin@0011.com>
Subject: Re: Guru question: Regular Expression
Message-Id: <379C4A0F.905E27D3@0011.com>
using HTML::Parser is fine. but for such a simple task,
using it would be an overkill. can it be done in 2, 3 lines
in Perl?
Abigail wrote:
>
> Kin Lum (kin@0011.com) wrote on MMCLIV September MCMXCIII in
> <URL:news:379BA0E4.6A7A5127@0011.com>:
> {} can you easily kill all tags except the ones you want to keep:
> {} <b> <i> <font > <a >
>
> If you have simplistic HTML (the kind most browser can understand)
> you can use the horribly misnamed 'HTML::Parser' module.
>
> {} # now kill all tags
> {} s/<.*?>//g;
>
> This is too stupid to take seriously. Please read the FAQ.
>
> Abigail
> --
> perl -MTime::JulianDay -lwe'@r=reverse(M=>(0)x99=>CM=>(0)x399=>D=>(0)x99=>CD=>(
> 0)x299=>C=>(0)x9=>XC=>(0)x39=>L=>(0)x9=>XL=>(0)x29=>X=>IX=>0=>0=>0=>V=>IV=>0=>0
> =>I=>$r=-2449231+gm_julian_day+time);do{until($r<$#r){$_.=$r[$#r];$r-=$#r}for(;
> !$r[--$#r];){}}while$r;$,="\x20";print+$_=>September=>MCMXCIII=>()'
>
> -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
> http://www.newsfeeds.com The Largest Usenet Servers in the World!
> ------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 26 Jul 1999 10:31:57 GMT
From: stefano@rerumnatura.zool.su.se (Stefano Ghirlanda)
Subject: help with flock() portability
Message-Id: <slrn7ppa4i.f2n.stefano@rerumnatura.zool.su.se>
--
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: stefano@zool.su.se
Support Free Science, look at: http://rerumnatura.zool.su.se
------------------------------
Date: Sun, 25 Jul 1999 22:20:28 -0300
From: "Dimitrio" <mdimitrio@yahoo.com>
Subject: How make .pl files executable? Is there a compiler?
Message-Id: <7ngd0d$gq1$1@news.mandic.com.br>
Hi,
How do I make my .pl files into .exe files? Or into unix executables (even
better)?
Please some one help me with this one,
Marcos.
------------------------------
Date: Mon, 26 Jul 1999 18:49:54 +1000
From: e-lephant@b-igpond.com (elephant)
Subject: Re: How make .pl files executable? Is there a compiler?
Message-Id: <MPG.1206cc3f9ddf6844989b7d@news-server>
Dimitrio writes ..
>How do I make my .pl files into .exe files? Or into unix executables (even
>better)?
you might want to look in perlfaq3 - found with
perldoc -q "compile.*perl"
--
jason - remove all hyphens for email reply -
------------------------------
Date: Mon, 26 Jul 1999 13:48:10 +0200
From: Thierry Van Doninck <thierry.vandoninck@dexia.be>
Subject: Mail::Mailer.pm problem
Message-Id: <379C4AFA.89A7F8AB@dexia.be>
Hello,
I have some problems using the perl module Mail::Mailer.
This comes with MailTools-1.13.
I compiled it on my unix system. (AIX 4.2.1).
I did not get any error messages when compiling.
I tried a demo script that I got from "The Perl Journal"'s web site.
Script :
----------
#!/usr/bin/perl5 -w
# mail_mailer.pl - sample mail sending routine using Mail::Mailer
use strict;
use lib "/home/sy064/perl/modules/lib";
use Mail::Mailer;
my $mailer = new Mail::Mailer 'smtp';
# Hash keys are headers in the outgoing mail
$mailer->open({To => 'sy064',
From => 'sy064',
Subject => 'Some test mail'});
print $mailer "Hi! This is some test mail. Boring, huh? :-)\n";
print $mailer "This was done using Mail:Mailer\n";
$mailer->close;
When I run the script I get following error's :
--------------------------------------------------------------
mailhub@spom113_tr0:/home/sy064/perl/scripts> mail_mailer_smailer.tvd.pl
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 11.
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 11.
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 11.
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 11.
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 13.
Filehandle Symbol::GEN0 never opened at mail_mailer_smailer.tvd.pl line
15.
Filehandle Symbol::GEN0 never opened at mail_mailer_smailer.tvd.pl line
16.
After this the script stays 'hung' and I abandon it using ctrl-C.
Using Net::smtp to send mail works.
Using Mail::Mailer 'mail' also works.
Using Mail::Mailer 'test' gives following output :
--------------------------------------------------------------------
to: sy064
Subject: Some test mail
To: sy064
From: sy064
Hi! This is some test mail. Boring, huh? :-)
This was done using Mail:Mailer
--------------------------------------------------------------------
Any Help solving this would be greatly appreciated.
Please forward a copy of any answers to me since I don't have access to
news.
Thierry.
thierry.vandoninck@dexia.be
------------------------------
Date: Mon, 26 Jul 1999 13:49:43 +0200
From: Thierry Van Doninck <thierry.vandoninck@dexia.be>
Subject: Mail::Mailer.pm problem
Message-Id: <379C4B57.289D3AE5@dexia.be>
Hello,
I have some problems using the perl module Mail::Mailer.
This comes with MailTools-1.13.
I compiled it on my unix system. (AIX 4.2.1).
I did not get any error messages when compiling.
I tried a demo script that I got from "The Perl Journal"'s web site.
Script :
----------
#!/usr/bin/perl5 -w
# mail_mailer.pl - sample mail sending routine using Mail::Mailer
use strict;
use lib "/home/sy064/perl/modules/lib";
use Mail::Mailer;
my $mailer = new Mail::Mailer 'smtp';
# Hash keys are headers in the outgoing mail
$mailer->open({To => 'sy064',
From => 'sy064',
Subject => 'Some test mail'});
print $mailer "Hi! This is some test mail. Boring, huh? :-)\n";
print $mailer "This was done using Mail:Mailer\n";
$mailer->close;
When I run the script I get following error's :
--------------------------------------------------------------
mailhub@spom113_tr0:/home/sy064/perl/scripts> mail_mailer_smailer.tvd.pl
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 11.
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 11.
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 11.
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 11.
Filehandle Symbol::GEN0 never opened at
/home/sy064/perl/modules/lib/Mail/Mailer/rfc822.pm line 13.
Filehandle Symbol::GEN0 never opened at mail_mailer_smailer.tvd.pl line
15.
Filehandle Symbol::GEN0 never opened at mail_mailer_smailer.tvd.pl line
16.
After this the script stays 'hung' and I abandon it using ctrl-C.
Using Net::smtp to send mail works.
Using Mail::Mailer 'mail' also works.
Using Mail::Mailer 'test' gives following output :
--------------------------------------------------------------------
to: sy064
Subject: Some test mail
To: sy064
From: sy064
Hi! This is some test mail. Boring, huh? :-)
This was done using Mail:Mailer
--------------------------------------------------------------------
Any Help solving this would be greatly appreciated.
Please forward a copy of any answers to me since I don't have access to
news.
Thierry.
thierry.vandoninck@dexia.be
------------------------------
Date: Mon, 26 Jul 1999 15:00:13 +0300
From: "Yroslav Buga" <buga@ipm.lviv.ua>
Subject: Re: Mail::Mailer.pm problem
Message-Id: <7nhigq$m5o$1@MU.icmp.lviv.ua>
Try to use Mail::Sender.
It works.
Thierry Van Doninck wrote in message <379C4B57.289D3AE5@dexia.be>...
------------------------------
Date: Mon, 26 Jul 1999 10:39:50 +0000
From: Masse <massea@yahoooo.com>
Subject: Re: Need installation help on Apache or PWS
Message-Id: <379C3AF6.3D3AA86@yahoooo.com>
Sure but I can't see that THAT could be a problem. Are you using Win/Dos syntax
for paths (e.g. "d:\docs\doc.doc")?
I have ActivePerl 518, PWS as well as Apache 1.3.6 everything works fine.
Send more specific questions for more specific answers, snippets for example.
Mats
Marko Cehaja wrote:
> Hi
>
> I want to debug and run my cgi and pl scripts on Windows 98. I have Apache
> server and if needed the Microsoft Personal Webserver. My perl is installed
> properly and it runs scripts, but under PWS and Apache, doesnt write new
> files, or it can open files.
>
> I don't see how to change that on Apache or on PWS. So, the problem is that
> I want my CGI scripts to be able to WRITE something on the harddisk. And I
> use it just for debugging as a local server.
>
> Can someone can help about that basic installation?
>
> I spent already a whole day trying to install that all properly but it
> didn't work.
>
> Thanks,
> Marko
------------------------------
Date: 26 Jul 1999 11:52:20 GMT
From: ansingam@chat.carleton.ca (Arul Singam)
Subject: Re: Outputting text as entered by user
Message-Id: <7nhi5k$8r$1@bertrand.ccs.carleton.ca>
> > Please email or post to newsgroup.
> I think that either one of the two would have been the default action
> for almost any newsreader. There really was no need to post that.
Dont you see the "or"? That means it is unneccessary to do "both".
Get some grammar knowledge in your brain before blabbering.
> > Arul Singam (ansingam@chat.carleton.ca) wrote:
> >
> >> I would like to output the text entered by a user in a form as entered
> >> (as opposed to a single line). i.e i want the formatting to remain the
> >> same as entered by the user, when i output it back to the user. But i
> >> dont want to use <BR> after each line since it breaks html code. Please help.
> >> Should i use a special seperator??
> Read up on HTML. This has absolutely nothing to do with perl. You may
> want to have a look at the <PRE></PRE> html tags, and not even that
> may be enough. Ask in a group that talks about html. As far as perl is
> concerned there are no problems.
> Martien
> --
> Martien Verbruggen |
> Interactive Media Division | Begin at the beginning and go on till
> Commercial Dynamics Pty. Ltd. | you come to the end; then stop.
> NSW, Australia |
------------------------------
Date: Mon, 26 Jul 1999 12:46:39 +0100
From: "James Williamson" <james.williamson@bbc.co.uk>
Subject: Re: Perl Socket Problem
Message-Id: <7nhhtg$ove$1@nntp0.reith.bbc.co.uk>
John wrote in message <7n6dl0$5ru$1@wanadoo.fr>...
>The following Perl problem is driving me crazy : I have a script
>that opens a socket and communicate with a remote httpd
>server. The call to open the socket is :
>-------------------------------------------------------------------------
>my $sock = IO::Socket::INET->new(PeerAddr => $host,
> PeerPort => $port,
> Proto => 'tcp',
> Timeout => 120) || returnError(-2)
>-------------------------------------------------------------------------
>When this script runs as a shell script, it works great. When
>It runs as a CGI, the Socket calls fails and returns the following
>error : Error in creating the socket : Protocol not supported
>(all parameters are hardcoded in the script, so it is not
>a CGI variable problem)
>
>Any idea of why it is happening? Can user priviliges be the
>problem (the user executing the shell script is different than
>the one running httpd demon)
>
>Note that this happens on a BSD running apache 1.3.1; It
>is a virtual server (never got the problem before neither
>NT, nor Linux nor Solaris, but all were normal servers
>not virtual ones)
>
>Thank you in advance for your help
>
>J
>
>
I'll tell you why, using virtual servers offers you the option to host
numerous sites with a single IP address, as my domain name IP address is
also the IP address of the company who hosts my website. This might be your
problem?
James Williamson
------------------------------
Date: Mon, 26 Jul 1999 10:43:17 +0000
From: Masse <massea@yahoooo.com>
Subject: Re: Problem with generate the return html for browser client
Message-Id: <379C3BC5.C889AD9E@yahoooo.com>
Yeah, or
print "Content-type: text/html\n\n";
Eemu Bertling wrote:
> >print("content-type:text\html\n\n");
>
> print("content-type:text\\html\n\n");
>
> T: Bera (Eemu Bertling)
------------------------------
Date: 26 Jul 1999 11:21:03 GMT
From: wolph@merlin.albany.net (r j huntington)
Subject: Re: reg expression
Message-Id: <7nhgav$qru$1@news.monmouth.com>
Abigail (abigail@delanet.com) wrote:
:
: The problem you describe is asked in variants about 37 times a day.
: It's also a FAQ.
Up to there, Abigail has a useful (to the querant) thing to say...
: Go to school, and learn to read. Then read.
But there she degrades into gratuitous insults.
One wonders why she does this. Can she show cause? Or is she just mean?
-=rjh=-
Just another asshole
------------------------------
Date: Mon, 26 Jul 1999 10:12:02 GMT
From: mike@fat.dotat.at (Mike Bristow)
Subject: Re: remove records from database
Message-Id: <slrn7pod3i.ant.mike@lindt.fat.dotat.at>
On 25 Jul 1999 18:36:38 -0500, Abigail <abigail@delanet.com> wrote:
>Mike Bristow (mike@fat.dotat.at) wrote on MMCLIV September MCMXCIII in
><URL:news:slrn7pmu8v.a01.mike@lindt.fat.dotat.at>:
>'' On Sun, 25 Jul 1999 10:57:28 -0800, Chad Horton <sandc@sprynet.com> wrote:
>'' >Here is my dilema:
>''
>'' Your newsclient is broken: it should be sending \n not \r\n to deliminate
>'' lines.
>
>Nice try, but if you read RFC 822 (which forms the bases for RFC 850,
>format of Usenet messages) then you will see that his newclient is
>*CORRECT*.
I'll reexamine the RFC's (which I read along time ago) and submit a bugreport.
Opps. That'll teach me to open my mouth...
--
Mike Bristow, Geek-At-Large. GK/RT0038
one tequila - two tequila - three tequila - FLOOR !!!
------------------------------
Date: 26 Jul 1999 11:27:18 +0200
From: specker@coop.rz.uni-frankfurt.de
Subject: Special problem (Networking)
Message-Id: <9egr9lv3gnd.fsf@coop.rz.uni-frankfurt.de>
Hi!
Maybe i'm just too dumb to read, but i failed to find
a solution to the follwing problem in any book so i
have to ask the list:
I am working on AIX 4.x with Perl5.005_02 and want
to monitor established connections on a maschine via perl.
Up to now we do it using a ksh script which calls
netstat -nf inet
and grep to get the tcp-connections with the state ESTABLISHED.
This solution is rather sluggish with many connections,
so i want to try using perl.
I would appreciate, if anyone could point me to a solution
or to a module.
Thanx in advance,
--
Sven Specker [specker@rz.uni-frankfurt.de]
##########################################
University of Frankfurt/Main Computing Centre
UNIX System Administration
------------------------------
Date: Mon, 26 Jul 1999 14:09:56 +0300
From: "Yroslav Buga" <buga@ipm.lviv.ua>
Subject: Re: Special problem (Networking)
Message-Id: <7nhfig$jnl$1@MU.icmp.lviv.ua>
You can use this script to run netstat from perl:
!/usr/bin/perl
open (NET," netstat -n inet |");
while ($res=<NET>)
{
print "$res";
}
close NSL;
This will print all data from netstat.
specker@coop.rz.uni-frankfurt.de wrote in message
<9egr9lv3gnd.fsf@coop.rz.uni-frankfurt.de>...
------------------------------
Date: Mon, 26 Jul 1999 12:34:01 +0200
From: Mike Eiringhaus <mail@netron.de>
Subject: Re: Stop parent but not child process
Message-Id: <379C3999.2465D5B9@netron.de>
Mike Eiringhaus wrote:
> I want to start a CD writing over the WWW Browser. So the Perl Program
> must send an execution message and terminate displaying to the STDOUT.
Ahh, you said "and terminate displaying to the STDOUT"
so... do it:
close STDOUT;
> The childprocess (i.e. cdrecord) must write the CD over 45 minutes and
> then terminates after sending en Email to the admin.
great idea.
> I have tryed exec and qx/... &/ but it doesnt work.
why?
> Thanks for every help.
> Mike Eiringhaus
please.
Mike Eiringhaus
------------------------------
Date: Mon, 26 Jul 1999 08:37:57 GMT
From: johnwingfield@my-deja.com
Subject: Re: Telnet via CGI?
Message-Id: <7nh6p5$2r7$1@nnrp1.deja.com>
In article <7n6s1b$2ri$3@news1.xs4all.nl>,
Johan Mulder <jmulder@localhost.nl> wrote:
> johnwingfield@my-deja.com wrote:
> Maybe you can build your own with Net::Telnet?
>
Thank you, I'll have a look at that and the other suggestions over the
next couple of days - I might come back to you (collectively) if I get
stuck!
Yours,
John Wingfield
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Mon, 26 Jul 1999 10:12:48 +0100
From: "Paul Foran (Layout/Design)" <Paul.Foran@analog.com>
Subject: Testing MSQL/Perl scripts at home with MS Access/Activestate Perl
Message-Id: <379C2690.9162F24B@analog.com>
I have a pc that has windows 98 and samba server instlled on it. I have
downloaded the activestate bin version of perl. I need to develop perl
CGI scipts at home that I will upload to my ISP. My ISP runs on a unix
box. ISP recommends Perl to interface to MSQL. I intend to write Perl
scripts that will query a MSQL data base from a HTML form and return
results to client. Is ther any way that I can test the perl scripts at
home with MS Access so that All I have to do is to make a slight change
to the scripts when being uploaded to ISP?
PS: I am having difficulty in installing MSQL/DBI/DBD modules into
activestate perl package manager. Is there a Bin perl application that
runs on windows98 and has all the modules that I need pre installed??
regards
Paul.
------------------------------
Date: Mon, 26 Jul 1999 11:42:15 +0100
From: Richard H <rhrh@hotmail.com>
Subject: Re: Testing MSQL/Perl scripts at home with MS Access/Activestate Perl
Message-Id: <379C3B86.8042DF97@hotmail.com>
try
http://www.ActiveState.com/packages/zips
download the zip, extract it and use PPM as in the activestate
documentation,
Richard H
------------------------------
Date: Mon, 26 Jul 1999 12:23:10 +0100
From: "James Williamson" <james.williamson@bbc.co.uk>
Subject: Re: Testing MSQL/Perl scripts at home with MS Access/Activestate Perl
Message-Id: <7nhghf$ofm$1@nntp0.reith.bbc.co.uk>
Paul Foran (Layout/Design) wrote in message
<379C2690.9162F24B@analog.com>...
>I have a pc that has windows 98 and samba server instlled on it. I have
>downloaded the activestate bin version of perl. I need to develop perl
>CGI scipts at home that I will upload to my ISP. My ISP runs on a unix
>box. ISP recommends Perl to interface to MSQL. I intend to write Perl
>scripts that will query a MSQL data base from a HTML form and return
>results to client. Is ther any way that I can test the perl scripts at
>home with MS Access so that All I have to do is to make a slight change
>to the scripts when being uploaded to ISP?
>PS: I am having difficulty in installing MSQL/DBI/DBD modules into
>activestate perl package manager. Is there a Bin perl application that
>runs on windows98 and has all the modules that I need pre installed??
>regards
>Paul.
>
If your ISP is using Unix, why don't you go for a dual booting option and
install linux? The differences between the Win32 port and the Unix/Linux
port isn't generally significant (although someone will put me right) but at
least you can be certain the script will run when you upload it.
James Williamson
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 99)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V9 Issue 258
*************************************