[15635] in Perl-Users-Digest
Perl-Users Digest, Issue: 3048 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon May 15 06:10:29 2000
Date: Mon, 15 May 2000 03:10:15 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <958385414-v9-i3048@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Mon, 15 May 2000 Volume: 9 Number: 3048
Today's topics:
Re: Problems with MySQL and DBD/DBI modules <gellyfish@gellyfish.com>
Re: Programing Question... <webmaster@linkworm.com>
Re: Programing Question... <evilbeaver.picksoft@NOSPAMzext.net>
running a service as root <thomas2@dalnet.se>
Starting another prog <ah@datapharm.de>
Re: tar in Perl, system or not <xah@xahlee.org>
Re: text counter <webmaster@linkworm.com>
Re: text counter <webmaster@linkworm.com>
Re: This error catching code should work right? <gellyfish@gellyfish.com>
Re: Update problem with DBI-ODBC and MSAccess <gellyfish@gellyfish.com>
WoT MUD Looking for Coder who knows Perl rynaln@hotmail.com
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 15 May 2000 07:06:23 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Problems with MySQL and DBD/DBI modules
Message-Id: <8fo44v$d3n$1@orpheus.gellyfish.com>
On Sun, 14 May 2000 07:45:21 -0400 Yevgeniy Leshchinskiy wrote:
> Hi everybody,
> I have installed MySQL on my server a little while ago, and I have also
> installed the DBI and DBD:MySQL modules. However, when I tried to use a file
> which connects to MySQL, I got the following error:
>
> [yl@fubar cgi-bin]$ perl test2.pl
> install_driver(mysql) failed: Can't locate loadable object for module
> DBD::mysql
> in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux
> /usr/lib/perl5/5.0050
> 3 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005
> .) at
> (eval 1) line 3
> Perhaps a module that DBD::mysql requires hasn't been fully installed
> at test2.pl line 5
>
> Does anyone know what it means and how to fix it?
>
It means that DBD::Mysql is not properly installed.
/J\
--
Ha ha! Look at this country! ?You are gay!? Ha ha!
--
fortune oscar homer
------------------------------
Date: Mon, 15 May 2000 01:12:28 -0700
From: "LinkWorm Software, Inc." <webmaster@linkworm.com>
Subject: Re: Programing Question...
Message-Id: <391FB16C.465660D5@linkworm.com>
Adam wrote:
>
> If I were to build a build a website, say for example a site like Etrade,
> Ebay or Classmates.com (I'm not, but it's a good example). What are complex
> sites as such constructed of besides HTML? Is it Perl and CGI scripts?
>
> -Adam
Yes, CGI can be used, which can be coded in Perl, C/++, Python and
other's. They can use combinations (or only) of CGI, PHP, ASP, Java,
etc. Many, many things are used, it depends on what you know best, and
what works best on said web server's OS/web server, etc. That's a very
vague question.
--
Regards,
Tim Greer: tech@linkworm.com | LinkWorm Software http://www.linkworm.com
Tel: 530 247-1749. Programming, CGI, Perl, C/C++, ASP, SQL, more. Design
Web Server & Network Administration, Security, Consulting, Installations
Configuration. Unix/Linux/FreeBSD & NT. Apache, IIS, TCP/IP, LAN/WAN/WWW
------------------------------
Date: Mon, 15 May 2000 08:32:41 GMT
From: "The Evil Beaver" <evilbeaver.picksoft@NOSPAMzext.net>
Subject: Re: Programing Question...
Message-Id: <JCOT4.26453$Kv2.215273@quark.idirect.com>
LinkWorm Software, Inc. <webmaster@linkworm.com> wrote...
...
> Yes, CGI can be used, which can be coded in Perl, C/++, Python and
> other's. They can use combinations (or only) of CGI, PHP, ASP, Java,
> etc. Many, many things are used, it depends on what you know best, and
> what works best on said web server's OS/web server, etc. That's a very
> vague question.
Do we have ASP for any OS other than Windows yet? If not, why bother even
mentioning it?
ASP is pretty good, but as long as it's locked up on Windows, there is no
need to bother with
it. Same goes to VBScript and JScript, both of which are okay for server
side work.
If I am just out of date, please tell me...
-----
The Evil Beaver <evilbeaver.picksoft@NOSPAMzext.net>
-- Remove NOSPAM to e-mail me.
This message ROT-13 encrypted twice for extra security.
------------------------------
Date: Mon, 15 May 2000 09:39:59 GMT
From: "Thomas Åhlen" <thomas2@dalnet.se>
Subject: running a service as root
Message-Id: <PBPT4.17$e61.7873@dummy.bahnhof.se>
I have written a client and server based unixsystem administration
tool. The ide' is to install the server on several machines and the client
on one protected(no user access) server. I can then use a webinterface on
my client machine to administrate all my servers.
For the servercode to be able to do the things i want it to it has to
run as root. I don't like it but in this case it is a must.
1. I run it as a service through inetd(tcp) with a tcp-wrapper.
2. I have incode ip and user/password authentication.
3. All comunication between client and server is encrypted with
Crypt::Twofish.
4. All server->system activity that don't require root access is run as the
user
it effects(eg. when creating a file i a user directory, do it as the user.)
- Still to be implemented.
5. All system calls are run with "exec 'program', '$arg1', '$arg2'" where
all
$args are matched with regexps.
I would be happy for any suggestions in making my client-server more secure.
I know that buffer owerflows is a classic way to hack servers. What is the
best way to
prevent/avoid buffer overflow.
-Thomas Åhlen
------------------------------
Date: Mon, 15 May 2000 11:28:19 +0200
From: Andreas Huber <ah@datapharm.de>
Subject: Starting another prog
Message-Id: <391FC331.1F7CA592@datapharm.de>
Hi,
how can I start another prog out of my perl-script, without keeping
alive my main-script?
Thanks
--
Andreas Huber
Produktion & Entwicklung
Datapharm Netsystems AG
E-Mail: ah@datapharm.de
Tel.: (+49) 89 85 68 4 -156
Fax: (+49) 89 85 68 4 -100
------------------------------
Date: Mon, 15 May 2000 02:48:13 -0700
From: Xah <xah@xahlee.org>
Subject: Re: tar in Perl, system or not
Message-Id: <B54515ED.8D17%xah@xahlee.org>
problem solved.
Error on my part. Long story short: I was looking in the wrong directory for
the untarred filed.
Thanks to all who helped.
Xah
xah@xahlee.org
http://xahlee.org/PageTwo_dir/more.html
------------------------------
Date: Mon, 15 May 2000 01:21:45 -0700
From: "LinkWorm Software, Inc." <webmaster@linkworm.com>
Subject: Re: text counter
Message-Id: <391FB399.FB352864@linkworm.com>
JTJ wrote:
>
<SNIP>
> no matter how many times I run the .pl.
Run the ".pl"? What's a .pl?
<SNIP>
> open(STATSLOG,"$userstatslog");
Check that call:
open (STATSLOG, "$userstatslog") or die "Open failed for $userstatslog
$!";
Also, look into something called "file locking".
> @STATData = <STATSLOG>;
> close(STATSLOG);
... or die "Close failed for $userstatslog $!";
>
> foreach $line (@STATData)
> {
Why are you doing a foreach loop there?????
> chop $line;
> @STATData = split (/\t/, $line);
> }
> $STATData[0]++;
Okay, count the hit.
> if ($in{'APPLIC'} =~ /Netscape/)
^^^^^^^^
Where's that coming from?
> {$STATData[1]++;}
> if ($in{'APPLIC'} =~ /Microsoft Internet Explorer/)
^^^^^^^^
Where's that coming from?
> {$STATData[2]++;}
> if ($in{'BVERSION'} =~ /4\./)
^^^^^^^^
Where's that coming from?
> {$STATData[3]++;}
>
> open(SLOG,">$userstatslog");
Check your call. (refer to above).
Lock the file...
> print SLOG "$STATData[0]\t$STATData[1]\t$STATData[2]\t$STATData[3]\t";
Why do you write another tab delimiter at the end for?
> close(SLOG);
Check the call...
Read the Perl Docs and other help/information. Maybe buy a book? It's
hard to explain problems, if you don't understand enough about it to
avoid all of them. Basically, you'll end up having other's write it for
you, in which case you learn nothing and you have the same problems
again. Maybe you just neglected to provide the other information in your
code?
--
Regards,
Tim Greer: tech@linkworm.com | LinkWorm Software http://www.linkworm.com
Tel: 530 247-1749. Programming, CGI, Perl, C/C++, ASP, SQL, more. Design
Web Server & Network Administration, Security, Consulting, Installations
Configuration. Unix/Linux/FreeBSD & NT. Apache, IIS, TCP/IP, LAN/WAN/WWW
------------------------------
Date: Mon, 15 May 2000 01:38:22 -0700
From: "LinkWorm Software, Inc." <webmaster@linkworm.com>
Subject: Re: text counter
Message-Id: <391FB77E.56578D26@linkworm.com>
"LinkWorm Software, Inc." wrote:
>
<SNIP>
> Why are you doing a foreach loop there?????
>
> > chop $line;
> > @STATData = split (/\t/, $line);
> > }
> > $STATData[0]++;
I completely neglected to mention the above. You already have @STATData
= <STATSLOG>, so why do a for loop and then split to assign each field?
You already have the array and values, no need to for loop and step
through it just to create, or re-create another/same one. Just split the
fields of the array you already have.
<SNIP>
--
Regards,
Tim Greer: tech@linkworm.com | LinkWorm Software http://www.linkworm.com
Tel: 530 247-1749. Programming, CGI, Perl, C/C++, ASP, SQL, more. Design
Web Server & Network Administration, Security, Consulting, Installations
Configuration. Unix/Linux/FreeBSD & NT. Apache, IIS, TCP/IP, LAN/WAN/WWW
------------------------------
Date: 15 May 2000 07:27:07 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: This error catching code should work right?
Message-Id: <8fo5br$h3e$1@orpheus.gellyfish.com>
On Sat, 13 May 2000 17:54:40 -0600 Kevin Stone wrote:
> I'm experimenting with error catching code that is more robust than the
> standard "WORK OR DIE" method. Below is an example of my error catching
> code. All I'm doing is opening a file saving its contents to an array and
> closing it. My intent is to create highly descriptive, intuitive error
> messages for a log file and also for printing it to the screen...
>
Thats fine and dandy but it isnt reporting the :
"Can't "last" outside a loop block at ... "
error message which would have been useful. Read what it says about that
message in the perldiag manpage.
/J\
--
''To Start Press Any Key''. Where's the ANY key? I see Esk, Catarl ,
and Pig-Up. There doesn't seem to be any ANY key. Woo! All this computer
hacking is making me thirsty. I think I'll order a TAB.
--
fortune oscar homer
------------------------------
Date: 15 May 2000 07:33:51 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Update problem with DBI-ODBC and MSAccess
Message-Id: <8fo5of$icq$1@orpheus.gellyfish.com>
On Sun, 14 May 2000 00:55:27 +0200 Geert-Jan wrote:
> Everytime I try an "UPDATE... " or an "INSERT..." SQL command on an Access
> Database
> using a Perl program with DBI and DBD-ODBC, it fails. The SELECT-strings
> work fine though.
> The web server returns an error, like:
>
> "DBD::ODBC::st fetchall_arrayref failed: (DBD: no select statement currently
> executing err=-1)
> at C:\sambar41\docs\odigon_1\cgi-bin\test\update.cgi line 16."
>
This is because a fetch of any sort is meaningless with a query that doesnt
return any rows such as an insert, delete or update. The execute() is
all that you need or alternatively you can use do().
/J\
--
Bart, you're saying butt-kisser like it's a bad thing!
--
fortune oscar homer
------------------------------
Date: Mon, 15 May 2000 09:36:01 GMT
From: rynaln@hotmail.com
Subject: WoT MUD Looking for Coder who knows Perl
Message-Id: <8foge0$ls8$1@nnrp1.deja.com>
Our MUD is a project in the works, based on Robert Jordan's Wheel of
Time novels, but centered to open in Pre-Trolloc Wars era. We’re at a
very exciting stage right now as we've opted to base the MUD in a time
where we knew little to nothing about the cultures and countries of the
world, and so this gives us not just the adequate space to be creative
and in a way create our own world, but it lessens the frustration of
starting everything from scratch by giving us a general basic concept
to structure all our ideas upon.
Our MUD has been in existence for nearly two and a half years now.
While work has gone slowly up until now, we have three cities in the
works, as well as some firm ideas on a complex fight system that just
waits for a coder to put it into effect. We recently decided to switch
our time period from the time of the books to one that will allow us
more freedom. Most of what needs to be done at this point will be idea
work and coding.
The staff we'd like to acquire is one not just of coders, but one of
people who have ideas and wish to see them go through and become
reality to our world. We currently have two Imps who are overseeing the
creation of cultures, as well as a few staff members who are working on
a very advanced and exciting fight system for the code.
Head Coder and Assistants:
We're looking for a Head Coder who is willing to take on a few
assistants as they may appear and who has a good knowledge of Perl, SQL
and C, as our codebase has been greatly modified from its original
structure. Assistant Coders must be willing of course, to work with the
Head Coder and be people persons as well as quick learners. Whereas the
Head Coder will work on bigger projects, the Assistant Coders will
mostly be working on smaller things, as well as helping the HC where
she/he may need it.
If at all interested, please send a mail to srm@missupportservices.com
and rynaln@hotmail.com with who you are, your background and experience
with the Wheel of Time series, Building in OLC or coding in Perl, SQL
and C, depending of course, on the position you wish to apply for.
Also, if you're applying to be a builder, please include a sample
description of your work, hopefully on a room or whatever you may
specialize in, be it objects, rooms or mobs.
Thanks!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 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.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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.
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 3048
**************************************