[12650] in Perl-Users-Digest
Perl-Users Digest, Issue: 59 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Jul 7 14:17:19 1999
Date: Wed, 7 Jul 1999 11:06:08 -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 Wed, 7 Jul 1999 Volume: 9 Number: 59
Today's topics:
Re: How can I run ActivePerl ?! <carvdawg@patriot.net>
Re: How can I run ActivePerl ?! <debot@xs4all.nl>
Re: How can I run ActivePerl ?! <carvdawg@patriot.net>
Re: How can I run ActivePerl ?! (Abigail)
Re: How can I run ActivePerl ?! <mike@crusaders.no>
Re: How can I run ActivePerl ?! <JFedor@datacom-css.com>
Re: How can I run ActivePerl ?! (Larry Rosler)
Re: How can I run ActivePerl ?! (A.J. Norman)
Re: How can I run ActivePerl ?! <c4jgurney@my-deja.com>
RE: How can I run ActivePerl ?! <torcu99@teleline.es>
Re: How do you use XML Modules with ActiveStatePerl? grehom@my-deja.com
Re: How do you use XML Modules with ActiveStatePerl? grehom@my-deja.com
Re: How do you use XML Modules with ActiveStatePerl? <matt@sergeant.org>
How to change ODBC Timeout value? rburghardt@juno.com
how to compare a "string" with /etc/shadow password <milin@cisco.com>
Re: how to compare a "string" with /etc/shadow password (Abigail)
I need to hide the source rdosser@my-deja.com
Re: I need to hide the source (Greg Bacon)
Re: I need to hide the source <dgris@moiraine.dimensional.com>
Re: Interpreting MS-ASCII - anyone have a filter? (Eric Bohlman)
Re: Interpreting MS-ASCII - anyone have a filter? (Bart Lateur)
Re: IO::Select and IO::Socket (Lars Gregersen)
IPC READ/WRITE Filehandles <presnell@umich.edu>
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 06 Jul 1999 18:14:04 +0100
From: Marquis de Carvdawg <carvdawg@patriot.net>
Subject: Re: How can I run ActivePerl ?!
Message-Id: <3782395C.12DD2217@patriot.net>
You have to create a script, then run it from the command line:
c:\Perl>perl myscript.pl
However, for CGI's you'll need a web server...
Scientia wrote:
> How can I run ActivePerl ?!
>
> Hello
> I am learning PERL in order to make very simple CGIs.
> I have Win95 and I downloaded ActivePerl (with the correct Microsoft
> file needed to make it work on Win95).
>
> I installed successfully ActivePerl but...
> What should I do now?!
> I can't see any program to run!
> I see only a lot of documents, also HTML, including a FAQ,
> but I do not understand at all where I should make and run my scripts!
>
> I can find a lot of documents explaining the differences between the
> latest version and the previous ones and a lot of informations that
> are not useful to me.
>
> Now my desire is only to run programs like:
>
> --------------
> print "Hello\n";
> --------------
>
> or
>
> --------------
> $a = 3;
> $b = 5;
> $c = a+b;
> print "The sum is $c\n";
> -------------
>
> I understand that this post may seem silly,
> but I can't use ActivePerl at present!
>
> Thanks for any help
> Fabrizio
>
> scientia@technologist.com
------------------------------
Date: Wed, 07 Jul 1999 00:12:08 +0200
From: Frank de Bot <debot@xs4all.nl>
Subject: Re: How can I run ActivePerl ?!
Message-Id: <37827F38.CF19B92A@xs4all.nl>
If all went right you can do it this way in the msdos prompt.
perl c:\mydir\myscript.pl
If you want to do it in your browser, you must first get a http server
such as apache ( http://www.apache.org )
If the server is well running and listen to the address: 127.0.0.1
Now you must make your script like this:
#!c:\mypath\to\perl.exe
print "content-type: text/html\n\n";
print "Hi World!";
Then call it like this in your browser:
http://127.0.0.1/mypath/to/thescript.pl
Note: This depends what your root directory is. Further instruction about
the server are included with the download.
Scientia wrote:
> How can I run ActivePerl ?!
>
> Hello
> I am learning PERL in order to make very simple CGIs.
> I have Win95 and I downloaded ActivePerl (with the correct Microsoft
> file needed to make it work on Win95).
>
> I installed successfully ActivePerl but...
> What should I do now?!
> I can't see any program to run!
> I see only a lot of documents, also HTML, including a FAQ,
> but I do not understand at all where I should make and run my scripts!
>
> I can find a lot of documents explaining the differences between the
> latest version and the previous ones and a lot of informations that
> are not useful to me.
>
> Now my desire is only to run programs like:
>
> --------------
> print "Hello\n";
> --------------
>
> or
>
> --------------
> $a = 3;
> $b = 5;
> $c = a+b;
> print "The sum is $c\n";
> -------------
>
> I understand that this post may seem silly,
> but I can't use ActivePerl at present!
>
> Thanks for any help
> Fabrizio
>
> scientia@technologist.com
--
Contact Information:
\\\|///
\\ - - //
( @ @ )
----------------------oOOo-(_)-oOOo--------------------|
| General: |
| |
| EMAIL: debot@xs4all.nl |
|------------------------------------------------------|
| Penpal International |
| |
| URL: http://www.debot.nl/ppi/ or http://fly.to/ppi |
| EMAIL: debot@xs4all.nl or ppi@debot.nl |
-------------------------------Oooo---------------------
oooO ( )
( ) ) /
\ ( (_/
\_)
------------------------------
Date: Tue, 06 Jul 1999 18:16:28 +0100
From: Marquis de Carvdawg <carvdawg@patriot.net>
Subject: Re: How can I run ActivePerl ?!
Message-Id: <378239EC.94ACA11@patriot.net>
> --------------
> print "Hello\n";
> --------------
>
> or
>
> --------------
> $a = 3;
> $b = 5;
> $c = a+b;
> print "The sum is $c\n";
> -------------
#! c:\perl\bin\perl.exe
print "Hello\n";
$a=3;$b=5;$c=$a+$b;
print "The sum is $c\n";
Now, save this as myscript.pl, in the Perl directory,
and then go to the perl directory, and type:
perl myscript.pl
at the command prompt
------------------------------
Date: 6 Jul 1999 18:26:09 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: How can I run ActivePerl ?!
Message-Id: <slrn7o543n.tch.abigail@alexandra.delanet.com>
Frank de Bot (debot@xs4all.nl) wrote on MMCXXXV September MCMXCIII in
<URL:news:37827F38.CF19B92A@xs4all.nl>:
The reply before the original article, that is fully quoted included
sig, and followed by a 17 line sig.
You're an idiot. Please go away. There are already enough idiots on
the Internet.
*plonk*
Abigail
--
perl -MNet::Dict -we '(Net::Dict -> new (server => "dict.org")
-> define ("foldoc", "perl")) [0] -> print'
-----------== 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: Wed, 7 Jul 1999 01:32:40 +0200
From: "Trond Michelsen" <mike@crusaders.no>
Subject: Re: How can I run ActivePerl ?!
Message-Id: <xnwg3.763$lN4.4824@news1.online.no>
> I installed successfully ActivePerl but...
> What should I do now?!
> I can't see any program to run!
> I see only a lot of documents, also HTML, including a FAQ,
> but I do not understand at all where I should make and run my scripts!
I'm pretty sure that this is mentioned in that FAQ (Getting
Started->Readme->Getting Started), but anyway.
1. Open notepad.exe
2. write the following line into the noepad window.
print "Hello World\n";
3. Save your file as C:\heloworl.pl
4. Open an MS-DOS window
5. enter the following commands into the MS-DOS window:
c:
perl \heloworl.pl
6. And we're done ;-)
--
Trond Michelsen
------------------------------
Date: Wed, 7 Jul 1999 02:07:20 -0400
From: "Jody Fedor" <JFedor@datacom-css.com>
Subject: Re: How can I run ActivePerl ?!
Message-Id: <7luov2$89r$1@plonk.apk.net>
Scientia wrote in message <3782D708.3CF3@XXXtechnologist.com>...
>How can I run ActivePerl ?!
>
On your computer!
Besides, no one has mentioned that you MUST USE STRICT and don't forget the
w!
Soooooo.... here goes!
In your simple script using notepad type the following:
#!c:\perl\bin\perl -w
use strict;
print "hello\n";
my ($a, $b, $c);
$a = 3;
$b = 5;
$c = $a + $b;
print "The sum is $c\n";
save file as type "All files (*.*)" with a name like: hello.pl
Go to the dos prompt and if your perl is installed correctly and you are in
the directory where
you saved the file "hello.pl" you may type:
perl hello.pl
and it will work.
Good luck, and have fun!
Jody
PS - you may also run perl from the prompt by typing:
perl -e "print \"hello\n\";"
------------------------------
Date: Wed, 7 Jul 1999 01:07:11 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: How can I run ActivePerl ?!
Message-Id: <MPG.11ecaa837caf9078989c6d@nntp.hpl.hp.com>
In article <7luov2$89r$1@plonk.apk.net> on Wed, 7 Jul 1999 02:07:20 -
0400, Jody Fedor <JFedor@datacom-css.com> says...
...
> save file as type "All files (*.*)" with a name like: hello.pl
>
> Go to the dos prompt and if your perl is installed correctly and you are in
> the directory where
> you saved the file "hello.pl" you may type:
>
> perl hello.pl
>
> and it will work.
It will work with any suffix (not just '.pl' as this post implies) or
with none. I routinely use '.txt', which makes it easier to get the
file into the text editor (gvim in my setup, Notepad -- ugh! -- by
default).
--
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: 7 Jul 1999 09:53:31 +0100
From: nja@le.ac.uk (A.J. Norman)
Subject: Re: How can I run ActivePerl ?!
Message-Id: <7lv4ib$6em@harrier.le.ac.uk>
As an aside, on NT4 you can do this:
c:\> ftype Perl=c:\perl\bin\perl.exe "%1" %*
c:\> assoc .pl=Perl
c:\> set pathext=.pl;%pathext%
This allows you to run perl scripts saved with the .pl extension in the
same way as .exe or .com files - you can set the pathext variable using
the control panel, the assoc and ftype changes should be permanent.
--
Andrew Norman, Leicester, England
nja@le.ac.uk || andrew.norman@le.ac.uk
http://www.le.ac.uk/engineering/nja/
------------------------------
Date: Wed, 07 Jul 1999 10:35:32 GMT
From: Jeremy Gurney <c4jgurney@my-deja.com>
Subject: Re: How can I run ActivePerl ?!
Message-Id: <7lvahk$990$1@nnrp1.deja.com>
In article <MPG.11ecaa837caf9078989c6d@nntp.hpl.hp.com>,
> I routinely use '.txt', which makes it easier to get the
> file into the text editor (gvim in my setup, Notepad -- ugh! -- by
> default).
>
> (Just Another Larry) Rosler
I know this is not strictly perl related but for those of you on
Win32 who want to be able to get your .pl perl scripts into an editor
from explorer you might want to do the following.
In explorer go to View>Options
Select the file types tab and find the .pl file type (or create it if
your install hasn't done so).
Create a new action by clicking on the 'New' button.
Call the action "Edit" and set it to
"C:\WINNT\system32\NOTEPAD.EXE" "%1"
Replacing the path to notepad with the path to your favourite text
editor.
Now when you right click on your perl script you will be given the
option to edit it as well as open it. If you so wish you can also
change the default action to edit instead of open (which runs the
script) so that a double click on the file will edit it. I'm on NT here,
I know you can do the same on win95,98 the theory is the same but the
details may be a little different.
Regards,
Jeremy Gurney
SAS Programmer | Proteus Molecular Design Ltd.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Tue, 6 Jul 1999 16:04:19 +0100
From: "Torcuato" <torcu99@teleline.es>
Subject: RE: How can I run ActivePerl ?!
Message-Id: <7lvmk5$3ga@telerad.teleline.es>
Scientia <scientia@XXXtechnologist.com> escribió en el mensaje de noticias
3782D708.3CF3@XXXtechnologist.com...
> How can I run ActivePerl ?!
>
> Hello
> I am learning PERL in order to make very simple CGIs.
> I have Win95 and I downloaded ActivePerl (with the correct Microsoft
> file needed to make it work on Win95).
>
> I installed successfully ActivePerl but...
> What should I do now?!
> I can't see any program to run!
> I see only a lot of documents, also HTML, including a FAQ,
> but I do not understand at all where I should make and run my scripts!
>
> I can find a lot of documents explaining the differences between the
> latest version and the previous ones and a lot of informations that
> are not useful to me.
>
> Now my desire is only to run programs like:
>
> --------------
> print "Hello\n";
> --------------
>
> or
>
> --------------
> $a = 3;
> $b = 5;
> $c = a+b;
> print "The sum is $c\n";
> -------------
>
> I understand that this post may seem silly,
> but I can't use ActivePerl at present!
>
> Thanks for any help
> Fabrizio
>
> scientia@technologist.com
1) make a file with edit.com and save it 'program.pl'
2) perl program.pl
------------------------------
Date: Tue, 06 Jul 1999 21:59:46 GMT
From: grehom@my-deja.com
Subject: Re: How do you use XML Modules with ActiveStatePerl?
Message-Id: <7ltu8b$qft$1@nnrp1.deja.com>
In article <3770ECEC.3B48704F@hotmail.com>,
robert sarno <utbob@hotmail.com> wrote:
> I am realitively new to Perl but have an ok handle on C. I am
> programming Perl with the newest Perl compiler I can find 5.00503.
How
> do we use the XML mods with ActiveStatePerl. I have the XML mods on
my
> desktop.
>
> Rob
>
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Tue, 06 Jul 1999 22:19:34 GMT
From: grehom@my-deja.com
Subject: Re: How do you use XML Modules with ActiveStatePerl?
Message-Id: <7ltvdc$qua$1@nnrp1.deja.com>
In article <3770ECEC.3B48704F@hotmail.com>,
robert sarno <utbob@hotmail.com> wrote:
> I am realitively new to Perl but have an ok handle on C. I am
> programming Perl with the newest Perl compiler I can find 5.00503.
How
> do we use the XML mods with ActiveStatePerl. I have the XML mods on
my
> desktop.
>
> Rob
>
>
If you've got 5.005_03 that is a fairly recent one - (build 518) is the
latest of their builds. You could try the html help text that comes
with the package - double click on a file called c:\Perl\html\index.html
- or slightly easier see if there is an option off the Start button ~
Programs ~ Active Perl ~ Documentation. There you find the full monty
ETYEWTOKAAGBMB - the XML stuff is right at the very bottom of the left
hand column - have fun - I'm struggling with some of it at the moment -
I'd like to find some slightly more extensive examples than the ones in
the documentation. If any one has a moderately (O.K. simple) set of
examples of how to the the Objects style I'd be mighty gratefull.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Wed, 07 Jul 1999 10:24:14 +0100
From: Matt Sergeant <matt@sergeant.org>
Subject: Re: How do you use XML Modules with ActiveStatePerl?
Message-Id: <37831CBE.775E2287@sergeant.org>
grehom@my-deja.com wrote:
>
> I'd like to find some slightly more extensive examples than the ones in
> the documentation. If any one has a moderately (O.K. simple) set of
> examples of how to the the Objects style I'd be mighty gratefull.
My suggestion is don't. The Objects style is pretty useless. If anyone
actually has a use for it I'd be glad to know.
Matt.
------------------------------
Date: Wed, 07 Jul 1999 12:53:14 GMT
From: rburghardt@juno.com
Subject: How to change ODBC Timeout value?
Message-Id: <7lvijl$bnu$1@nnrp1.deja.com>
I have a subroutine which connects successfully to a database and runs a
rather lengthy stored procedure. It sometimes runs beyond the ODBC
timeout value. How can I change the default timeout value used?
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Tue, 06 Jul 1999 15:19:06 -0700
From: Mike Lin <milin@cisco.com>
Subject: how to compare a "string" with /etc/shadow password
Message-Id: <378280DA.A3F2920E@cisco.com>
I am just curious if there is a way to compare a user input string
against
the encrypted password in /etc/shadow under Solaris.
Thanks
------------------------------
Date: 6 Jul 1999 18:29:39 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: how to compare a "string" with /etc/shadow password
Message-Id: <slrn7o54ae.tch.abigail@alexandra.delanet.com>
Mike Lin (milin@cisco.com) wrote on MMCXXXV September MCMXCIII in
<URL:news:378280DA.A3F2920E@cisco.com>:
~~ I am just curious if there is a way to compare a user input string
~~ against
~~ the encrypted password in /etc/shadow under Solaris.
Yes. Just open /etc/shadow/, write it line by line till you get
the the right user, filter out the password, encrypt the given
input string and compare.
Of course, you'll have to run that as root, but you knew that, didn't you?
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: Wed, 07 Jul 1999 15:41:38 GMT
From: rdosser@my-deja.com
Subject: I need to hide the source
Message-Id: <7lvsff$fuo$1@nnrp1.deja.com>
Odd request here - I need to write a script in perl, but somehow encrypt
or encapsulate the source in a binary so that other users on the host -
including root - cannot read it.
Any thoughts?
Thanks,
Ralph Dosser
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 7 Jul 1999 15:55:05 GMT
From: gbacon@itsc.uah.edu (Greg Bacon)
Subject: Re: I need to hide the source
Message-Id: <7lvt8p$6g8$2@info2.uah.edu>
In article <7lvsff$fuo$1@nnrp1.deja.com>,
rdosser@my-deja.com writes:
: Odd request here - I need to write a script in perl, but somehow encrypt
: or encapsulate the source in a binary so that other users on the host -
: including root - cannot read it.
#! /usr/bin/perl -w
# Copyright (c) 1998 Greg Bacon. All Rights Reserved.
# This program is free software. You may distribute it or modify
# it (perhaps both) under the terms of the Artistic License that
# comes with the Perl Kit.
use strict;
use integer;
foreach my $file (@ARGV) {
unless (open FILE, $file) {
warn "$0: failed open $file: $!\n";
next;
}
my $key = int rand 256;
my $out = <<EOTop;
#! /usr/bin/perl
my \$prog = '';
{
my \$key = $key;
local \$/;
\$prog = pack "c*",
map { \$_ ^= \$key }
unpack "c*", <DATA>;
}
eval \$prog;
__END__
EOTop
while (<FILE>) {
$out .= pack "c*",
map { $_ ^= $key }
unpack "c*", $_;
}
close FILE;
unless (open FILE, ">$file") {
warn "$0: failed open >$file: $!\n";
next;
}
print FILE $out;
close FILE;
}
Enjoy,
Greg
--
A great many people think they are thinking when they are merely rearranging
their prejudices.
-- William James
------------------------------
Date: 07 Jul 1999 10:01:15 -0600
From: Daniel Grisinger <dgris@moiraine.dimensional.com>
Subject: Re: I need to hide the source
Message-Id: <m3g1308n5g.fsf@moiraine.dimensional.com>
rdosser@my-deja.com writes:
> Odd request here - I need to write a script in perl, but somehow encrypt
> or encapsulate the source in a binary so that other users on the host -
> including root - cannot read it.
>
> Any thoughts?
Yup. You can't do that, and you don't actually want to
anyway. To discover why you can't, learn unix. To
discover why you don't want to, consult the faq.
HTH.
HAND.
dgris
--
Daniel Grisinger dgris@moiraine.dimensional.com
perl -Mre=eval -e'$_=shift;;@[=split//;;$,=qq;\n;;;print
m;(.{$-}(?{$-++}));,q;;while$-<=@[;;' 'Just Another Perl Hacker'
------------------------------
Date: 7 Jul 1999 02:31:41 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Interpreting MS-ASCII - anyone have a filter?
Message-Id: <7lue6d$gss@dfw-ixnews12.ix.netcom.com>
Henry Churchyard (churchyh@ccwf.cc.utexas.edu) wrote:
: In article <376f9a38@cs.colorado.edu>,
: Tom Christiansen <tchrist@mox.perl.com> wrote:
:
: > http://language.perl.com/misc/demoroniser.html
:
: > #!/bin/perl -0777pw
: > # De-moron-ise Illegal Text and HTML from Microsoft Applications
:
: > # Eliminate idiot MS-DOS carriage returns from line terminator.
: > s/[\015\012]+/\n/g;
:
: What does that mean? In having \r\n as line-ending sequence, MS-DOS
: is arguably more closely following the intentions of the original
: ASCII specification, and in fact Internet standards themselves seem to
I have to agree with you here. CRLF as a line separator is valid ASCII,
and valid in HTML. It's just not the Unix Way. That's an entirely
different case from the tendency of Microsoft tools to use "pretty quotes"
defined only in their proprietary encoding schemes as replacements for
ASCII single and double quotes; the latter is indeed a case of
"moroni[zs]ation."
------------------------------
Date: Wed, 07 Jul 1999 07:32:08 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Interpreting MS-ASCII - anyone have a filter?
Message-Id: <3782fa09.1567010@news.skynet.be>
Henry Churchyard wrote:
>Tom Christiansen <tchrist@mox.perl.com> wrote:
>
>> http://language.perl.com/misc/demoroniser.html
>
>> #!/bin/perl -0777pw
>> # De-moron-ise Illegal Text and HTML from Microsoft Applications
>
>> # Eliminate idiot MS-DOS carriage returns from line terminator.
>> s/[\015\012]+/\n/g;
>
>What does that mean? In having \r\n as line-ending sequence, MS-DOS
>is arguably more closely following the intentions of the original
>ASCII specification
It's also wrong. It will replace ANY sequence of CR and LF with ONE
newline. This will screw up blank lines in <PRE> fields.
This one ough to work right. It not only processes the 3 "standard" ways
correctly, but also the illegal but oh so frequently encountered
CR+CR+LF sequence, which you can get by uploading HTML files from a PC
in binary, and then downloading them through the web.
s/\015\015?\012|\012|\015/\n/g;
Bart.
------------------------------
Date: Wed, 07 Jul 1999 09:26:43 GMT
From: lg@kt.dtu.dk (Lars Gregersen)
Subject: Re: IO::Select and IO::Socket
Message-Id: <37831cf3.10669389@news.dtu.dk>
On Fri, 02 Jul 1999 06:33:24 GMT, R.Joseph
<streaking_pyro@my-deja.com> wrote:
>I have read all the pages in perlfunc about these two modules and I
>still do not understand exactly how I would go about creating, say a
>socket-based server that can handle 10 connections...if anyone knows of
Have you tried the example in the IO::Select documentation? It
actually does what it says. I don't know if it scales well, but it
works for me and should also get you started.
Lars
------------------------------
Lars Gregersen (lg@kt.dtu.dk)
http://www.gbar.dtu.dk/~matlg
------------------------------
Date: Wed, 07 Jul 1999 08:08:01 GMT
From: Jason Presnell <presnell@umich.edu>
Subject: IPC READ/WRITE Filehandles
Message-Id: <37830AE7.A899E4FC@umich.edu>
Heya,
OK, I have hit a dead end as to how to resolve this. What I want to do is
write a script that can handle multiple returned user input strings ala the
passwd command. I have to rewrite our passwd routine in such a way that it
updates the password utilizing 2 other programs (LDAP and NIS if anybody is
curious). My problem is, I don't know how to stop all STDOUT of passwd from
going to the user, as well as writing to the various prompts of passwd. I'm
using IPC::Open2 on this...anything better? Any ideas?
There must be an easier way to have userland updating of the NIS passwd
map. Is there an equivalent putpwent() function call? I've seen mentions of
setpwent, but I don't think that applies here.
Cheers,
-j
Jason Presnell____________________________________
-------------- University of Michigan - Dearborn
ITS UNIX System Administrator
http://www-personal.umd.umich.edu/~presnell
__________________________________________________
------------------------------
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 59
************************************