Perl script problems

2003-12-04 Thread AG
I maintain a few Majordomo based mailing lists. Some of my users have complained about the cryptic nature of interacting w/Majordomo. As a result, I've been tinkering w/MailServ v4.4 for ~2mths. Most GUI front-ends are Perl based. There aren't any user mailiing list for users who were having

Re: Perl script problems

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice, legal API for

pass a variable from php to the perl file

2003-12-04 Thread Ciko Parera
hi everyone,I am trying to call a perl script from php (with shell_exec) and pass a variable to the perlfileI need to get the value of a variablefrom a PHP script, and put it into my perl script Does anyone know how I do this? thanks

Re: pass a variable from php to the perl file

2003-12-04 Thread drieux
On Dec 4, 2003, at 7:24 AM, Ciko Parera wrote: [..] I am trying to call a perl script from php (with shell_exec) and pass a variable to the perl file I need to get the value of a variable  from a PHP script, and put it into my perl script Does anyone know how I do this? [..] Since you are going

Passing the hash

2003-12-04 Thread Jonathan Mangin
Hello all... In my example-driven world I find [something like] this in 'CGI Programming with Perl', constructed in main:: if ($CGI-param(Screen3)) { showmeScreen3($CGI); } elsif ($CGI-param(Screen2)) { showmeScreen2($CGI); } else { showmeScreen1($CGI); } This is a pretty old book and

Re: Passing the hash

2003-12-04 Thread drieux
On Dec 4, 2003, at 12:21 PM, Jonathan Mangin wrote: [..] This is a pretty old book and I'm wondering if there's a newer, better way? I wish to be able to achieve what would be the results of this (if it were possible): if ($CGI-param(Screen3)) { showmeScreen3($CGI, %widgets); } ... but, of

Re: Beta Testing a Robot

2003-12-04 Thread Wiggins d Anconia
It was Wednesday, December 03, 2003 when Casey West took the soap box, saying: : I'm beta-testing a robot that searches Google when new questions are : posed to the beginners' lists. I have no idea if it will be useful. : :-) I should like to make an important note. This bot is not

Re: Beta Testing a Robot

2003-12-04 Thread Christopher G Tantalo
Casey West wrote: I'm beta-testing a robot that searches Google when new questions are posed to the beginners' lists. I have no idea if it will be useful. :-) I'm going to watch it closely and hope it is. I'll remove it if I find that it does a bad job. Casey West This does seem like a good

Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Wednesday, December 03, 2003 when Casey West took the soap box, saying: : I'm beta-testing a robot that searches Google when new questions are : posed to the beginners' lists. I have no idea if it will be useful. : :-) I should like to make an important note. This bot is not intended to

Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Thursday, December 04, 2003 when Wiggins d Anconia took the soap box, saying: : : : It was Wednesday, December 03, 2003 when Casey West took the soap box, : saying: : : I'm beta-testing a robot that searches Google when new questions are : : posed to the beginners' lists. I have no

RE: Beta Testing a Robot

2003-12-04 Thread Shaw, Matthew
My $0.02 on this: While it may be a worthwhile personal pursuit to write a script that provides relevant results from google based on the text of someone's email/news posting/etc, I don't think this is the forum for it. These are very busy lists to start with and this essentially will result in

Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Wednesday, December 03, 2003 when Casey West took the soap box, saying: : I'm beta-testing a robot that searches Google when new questions are : posed to the beginners' lists. I have no idea if it will be useful. : :-) : : I'm going to watch it closely and hope it is. I'll remove it if I

Re: Beta Testing a Robot

2003-12-04 Thread Chuck Fox
Casey, I would like to chime in on the side of sending the search results directly to the poster. In most cases, the poster is at the mercy of the search engine they choose. Whereas, you have the advantage of knowing where to search. Please do not abandon this work. A digest -- to which,

[REBUILT] Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Thursday, December 04, 2003 when Chuck Fox took the soap box, saying: : Casey, : : I would like to chime in on the side of sending the search results : directly to the poster. In most cases, the poster is at the mercy of : the search engine they choose. Whereas, you have the advantage

Pattern matching

2003-12-04 Thread B. Fongo
Hi I'm writing a script that will connect to an ftp server (Redhat mirror), and download new versions of all packages that are on my machine. First of all, the script collects information about all the packages installed on my machine in an array (installed_packages). Then its goes on to get

Re: using perl in a c code

2003-12-04 Thread Tassilo von Parseval
On Wed, Dec 03, 2003 at 05:17:01PM -0600 Dan Muey wrote: Doh! I was on 5.5, 5.8 just worked for me to, 5.6.1 also! In order to make your C code more portable across several versions of the perlapi, you could use Devel::PPPort. perl -MDevel::PPPort -eDevel::PPPort::WriteFile will create

Send in POST method

2003-12-04 Thread max4o
Hi all, my simple question is, is there a package that can help me to open URL and send parametters via POST method, not with GET? Thanks. Milen H. - This mail is from: [EMAIL PROTECTED] - -- To unsubscribe, e-mail: [EMAIL

Re: Send in POST method

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice, legal API for

RE: remove control chars

2003-12-04 Thread Bob Showalter
Kipp, James wrote: Doesn't quite work. Notice I need to keep any newline ( \n ) chars. Sorry, I missed that in the original post. Jeff gave you the fix. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Timing several processes

2003-12-04 Thread Akens, Anthony
AIX 5.1, actually. Though eventually linux, windows, and possibly other OS's will be in the mix. I'm writing this with the idea of it being very modular in that each server will do it's own check ever 15 minutes or so, and that the webserver will only connect and grab that data when someone goes

RE: Databases - MS Sql Server Desktop Engine

2003-12-04 Thread Jenda Krynicky
From: Paul Kraus [EMAIL PROTECTED] I can't figure out how to connect to the database engine with odbc. It's easiest if you first create a DNS using the Data Sources (ODBC) applet in Administrators tools. Se the docs of DBD::ODBC for examples how to connect then. Jenda = [EMAIL PROTECTED]

Perl and MS Access

2003-12-04 Thread Johnson, Shaunn
Howdy: I think I've seen it, but I don't know where - Isn't there a method to use Perl to connect to some MS Access database and extract the data into some other format (say, text). I've done it with Oracle and PostgreSQL ... I don't know if MS Access is too different (mostly because I live and

Re: Perl and MS Access

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice, legal API for

Compile help...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
I am trying to compile a 64bit Perl with Largefiles support. I am seeing the following error during the 'make test'. Any help would be most appreciated. This is version 5.6.1 on HP-UX 11i. The compile is being performed with the HP ANSI C compiler. lib/syslfs..skipped: writing

Re: 64 bit Perl memory test...

2003-12-04 Thread Casey West
It was Thursday, December 04, 2003 when Bakken, Luke took the soap box, saying: : how they were monitoring and/or determining this. Basically, : I would like : help with a Perl test script to use memory until Perl reaches : it's memory : limit. This will help me to know when I have things

[First Response Service] Re: 64 bit Perl memory test...

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice, legal API for

RE: 64 bit Perl memory test...

2003-12-04 Thread Bakken, Luke
It was Thursday, December 04, 2003 when Bakken, Luke took the soap box, saying: : how they were monitoring and/or determining this. Basically, : I would like : help with a Perl test script to use memory until Perl reaches : it's memory : limit. This will help me to know when I

Re: First Steps Perl DB programming (was: Re: first steps - read from files and make linklist)

2003-12-04 Thread Jonathan Jesse
Sorry for being off topic. I am slowly trying to learn the basics and then eventually move over to the work on the SQL side of things. Thanks for the idea for the book, I'll look into that along with the documentation. On Wed, 3 Dec 2003 13:01:54 -0700, Wiggins D Anconia [EMAIL PROTECTED]

RE: Beta Testing a Robot

2003-12-04 Thread Wiggins d Anconia
I don't quite understand why the first response is sent back to the list rather than just the OP though? Why do you send your responses (answers to questions) to the list instead of to the OP? So that others can benefit, and so that it will be in the list archives when someone else has

hostname

2003-12-04 Thread Thomas Browner
Is there away to find all of the hostname on a lan with use of perl? Thanks, Thomas

[First Response Service] Re: hostname

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice, legal API for

RE: Beta Testing a Robot

2003-12-04 Thread Guay Jean-Sébastien
I don't quite understand why the first response is sent back to the list rather than just the OP though? Why do you send your responses (answers to questions) to the list instead of to the OP? So that others can benefit, and so that it will be in the list archives when someone else has the same

64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
I have been asked to get a 64bit version of Perl compiled and working under HP-UX 11i. I have found some helpful hints on actually compiling this successfully. The reason for the 64bit version is memory utilization. My users have a script that processes an Oracle database of about 15

RE: hostname

2003-12-04 Thread Bob Showalter
Thomas Browner wrote: Is there away to find all of the hostname on a lan with use of perl? Getting a list of host names involves querying some kind of nameserver or directory service. What kind of LAN? What kind of hosts? You can query DNS to get the hosts in a domain using nslookup, dig, host,

Re: 64 bit Perl memory test...

2003-12-04 Thread Casey West
It was Thursday, December 04, 2003 when Bakken, Luke took the soap box, saying: : It was Thursday, December 04, 2003 when Bakken, Luke took the : soap box, saying: : : how they were monitoring and/or determining this. Basically, : : I would like : : help with a Perl test script to use

Re: hostname

2003-12-04 Thread Helgi Briem
Thomas Browner wrote: Is there away to find all of the hostname on a lan with use of perl? Portable to most systems: use Sys::Hostname; my $host = hostname; or (on Windows systems): my $host = $ENV{COMPUTERNAME}; or (on *nix systems): my $host = $ENV{HOSTNAME}; -- Helgi Briem Tæknideild

[First Response Service] Re: Compile help...

2003-12-04 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice, legal API for

RE: 64 bit Perl memory test...

2003-12-04 Thread Bakken, Luke
how they were monitoring and/or determining this. Basically, I would like help with a Perl test script to use memory until Perl reaches it's memory limit. This will help me to know when I have things right so I don't have to keep going back to the end users and tell them OK, try it

RE: Compile help...

2003-12-04 Thread Bakken, Luke
I am trying to compile a 64bit Perl with Largefiles support. I am seeing the following error during the 'make test'. Any help would be most appreciated. This is version 5.6.1 on HP-UX 11i. The compile is being performed with the HP ANSI C compiler.

RE: Perl and MS Access

2003-12-04 Thread Thomas Bätzler
Hello Shaunn, I think I've seen it, but I don't know where - Isn't there a method to use Perl to connect to some MS Access database and extract the data into some other format (say, text). That works fine with the DBD::ODBC module. If you have got large records in the database, you should

RE: Beta Testing a Robot

2003-12-04 Thread Guay Jean-Sébastien
and may very quickly become outdated, then the amount of crud someone must wade through if they are one of the few that actually check the archive first has gone up greatly. You've got a good point there. I didn't see it from that point of view, but now that I do, I agree that this is not

RE: Beta Testing a Robot

2003-12-04 Thread Bob Showalter
Casey West wrote: I'm beta-testing a robot that searches Google when new questions are posed to the beginners' lists. I have no idea if it will be useful. I'm not thrilled with the bot traffic, but at least it can be easily filtered out now. Perhaps the bot should only address questions that

Re: remove control chars

2003-12-04 Thread Rob Dixon
James Kipp wrote: I have some C code that I need to convert to perl and I am pressed for time, which is why I am posting this. Erm. Sorry to spoil the party an' all, but the answer is surely to go to your management and say that you need extra time? Many homework questions to the group have

RE: Beta Testing a Robot

2003-12-04 Thread Tom Kinzer
I also admire the effort and the good intentions, but, IMO I think most Perl programmers can handle a Google search, and the bot just creates unnecessary traffic on the list. At a minimum, it should only send to the original poster, not the whole list. /IMO my $2Cents; -Tom Kinzer -- To

RE: remove control chars

2003-12-04 Thread Tom Kinzer
Hah! I'm unemployed right now, so how about a contract?!? ;) --Tom Kinzer --Perl Gun for Hire-- -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 8:56 AM To: [EMAIL PROTECTED] Subject: Re: remove control chars James Kipp wrote: I have

RE: 64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
Unfortunately, there is no /dev/random in HP-UX. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -Original Message- From: Bakken, Luke [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:36 AM To: NIPP, SCOTT V (SBCSI);

Fix the Root Problem - Re: Beta Testing a Robot

2003-12-04 Thread drieux
On Dec 4, 2003, at 7:23 AM, Christopher G Tantalo wrote: [..] This does seem like a good idea, but for some of us who can not access the web from work, this just makes it worse. [..] Personally I am neutralish in this debate about the bot, but I think that Christopher has put the scary part on

RE: 64 bit Perl memory test...

2003-12-04 Thread david
Scott V Nipp wrote: Unfortunately, there is no /dev/random in HP-UX. fortunately, you don't need /dev/random. any of the following should eat up all of your machine's memory sooner or later: [panda]# perl -e '$#a={}' [panda]# perl -e '$a[{}]=1' [panda]# perl -e '$#a+=0x while 1' [panda]#

RE: 64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
Will this tell me how much memory is used at the point of failure? Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 1:11 PM To: [EMAIL

RE: 64 bit Perl memory test...

2003-12-04 Thread Bakken, Luke
Will this tell me how much memory is used at the point of failure? See code. Unfortunately, there is no /dev/random in HP-UX. But there is a /dev/zero use strict; $|++; my $mem; my $bigbuf; my $buf; open IN, '/dev/zero' or die Can't open random device: $!; while( $mem += read(IN,

RE: using perl in a c code

2003-12-04 Thread Dan Muey
Dan Muey wrote: [snip] Doh! I was on 5.5, 5.8 just worked for me to, 5.6.1 also! Great! Awesome! Perfect! One little catch now is it'd be nice to just do ./test or ./test name=valuename2=val2 instead of ./test -e '' Or ./test ctrl-D this can easily be solve by adding:

RE: using perl in a c code

2003-12-04 Thread Dan Muey
On Dec 3, 2003, at 3:17 PM, Dan Muey wrote: [..] Doh! I was on 5.5, 5.8 just worked for me to, 5.6.1 also! just wait until you have to remember, did this work with gcc2.X or only with gcc3.Y... and how exactly did I get it to build for the DogBertOS??? Before you get too

RE: using perl in a c code

2003-12-04 Thread Dan Muey
On Wed, Dec 03, 2003 at 05:17:01PM -0600 Dan Muey wrote: Doh! I was on 5.5, 5.8 just worked for me to, 5.6.1 also! In order to make your C code more portable across several versions of the perlapi, you could use Devel::PPPort. perl -MDevel::PPPort -eDevel::PPPort::WriteFile

RE: using perl in a c code

2003-12-04 Thread Dan Muey
Dan Muey wrote: On Dec 1, 2003, at 6:22 AM, Ramprasad A Padmanabhan wrote: [..] Instead Can I just embed this perl code in my c program I will be happy if someone can give some links to examples on the net http://www.perldoc.com/perl5.6/pod/perlembed.html That is

Finding Hosts On Lan - Re: hostname

2003-12-04 Thread drieux
On Dec 4, 2003, at 8:18 AM, Bob Showalter wrote: Thomas Browner wrote: Is there away to find all of the hostname on a lan with use of perl? [..] You can query DNS to get the hosts in a domain using nslookup, dig, host, or similar. For example: host -l mydomain.com If you want to talk to the

RE: Finding Hosts On Lan - Re: hostname

2003-12-04 Thread Bob Showalter
drieux wrote: On Dec 4, 2003, at 8:18 AM, Bob Showalter wrote: Thomas Browner wrote: Is there away to find all of the hostname on a lan with use of perl? [..] You can query DNS to get the hosts in a domain using nslookup, dig, host, or similar. For example: host -l mydomain.com

RE: 64 bit Perl memory test...

2003-12-04 Thread david
Scott V Nipp wrote: Will this tell me how much memory is used at the point of failure? no, it does not. you will have to do that manually. either watch the script in top or ps or write something like: #!/usr/bin/perl -w use strict; my $m = 1024 * 1000; my $i = ''; for($m * 100, $m * 200, $m

RE: 64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
Nope... No /dev/zero either in 11i. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -Original Message- From: Bakken, Luke [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 1:25 PM To: NIPP, SCOTT V (SBCSI); [EMAIL

RE: 64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
Very interesting... Running this script it dies at the 800MB attempt. However, watching this process in top, memory usage is actually double the amount that is being tested. In top, the last memory amount prior to it dying is 1400MB. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL

Re: Beta Testing a Robot

2003-12-04 Thread Wiggins d Anconia
It was Wednesday, December 03, 2003 when Casey West took the soap box, saying: : I'm beta-testing a robot that searches Google when new questions are : posed to the beginners' lists. I have no idea if it will be useful. : :-) I should like to make an important note. This bot is not

Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Thursday, December 04, 2003 when Wiggins d Anconia took the soap box, saying: : : : It was Wednesday, December 03, 2003 when Casey West took the soap box, : saying: : : I'm beta-testing a robot that searches Google when new questions are : : posed to the beginners' lists. I have no

Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Wednesday, December 03, 2003 when Casey West took the soap box, saying: : I'm beta-testing a robot that searches Google when new questions are : posed to the beginners' lists. I have no idea if it will be useful. : :-) I should like to make an important note. This bot is not intended to

Re: Beta Testing a Robot

2003-12-04 Thread Christopher G Tantalo
Casey West wrote: I'm beta-testing a robot that searches Google when new questions are posed to the beginners' lists. I have no idea if it will be useful. :-) I'm going to watch it closely and hope it is. I'll remove it if I find that it does a bad job. Casey West This does seem like a good

RE: Beta Testing a Robot

2003-12-04 Thread Shaw, Matthew
My $0.02 on this: While it may be a worthwhile personal pursuit to write a script that provides relevant results from google based on the text of someone's email/news posting/etc, I don't think this is the forum for it. These are very busy lists to start with and this essentially will result in

Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Wednesday, December 03, 2003 when Casey West took the soap box, saying: : I'm beta-testing a robot that searches Google when new questions are : posed to the beginners' lists. I have no idea if it will be useful. : :-) : : I'm going to watch it closely and hope it is. I'll remove it if I

Re: Beta Testing a Robot

2003-12-04 Thread Chuck Fox
Casey, I would like to chime in on the side of sending the search results directly to the poster. In most cases, the poster is at the mercy of the search engine they choose. Whereas, you have the advantage of knowing where to search. Please do not abandon this work. A digest -- to which,

[REBUILT] Re: Beta Testing a Robot

2003-12-04 Thread Casey West
It was Thursday, December 04, 2003 when Chuck Fox took the soap box, saying: : Casey, : : I would like to chime in on the side of sending the search results : directly to the poster. In most cases, the poster is at the mercy of : the search engine they choose. Whereas, you have the advantage

Reduce file size with Imager

2003-12-04 Thread Eamon Daly
Hi, all. I'm using Imager to create gifs, but the resultant file sizes are /huge/. I'm writing the files out like so: $img-write(type = 'gif', max_colors = 16, gif_eliminate_unused = 1, data = \$data) or die $img-errstr; I've verified that the

Pattern matching

2003-12-04 Thread B. Fongo
Hi I'm writing a script that will connect to an ftp server (Redhat mirror), and download new versions of all packages that are on my machine. First of all, the script collects information about all the packages installed on my machine in an array (installed_packages). Then its goes on to get

Fwd: Pattern matching

2003-12-04 Thread drieux
Begin forwarded message: From: drieux [EMAIL PROTECTED] Date: December 4, 2003 8:11:46 PM PST To: B. Fongo [EMAIL PROTECTED] Subject: Re: Pattern matching On Dec 4, 2003, at 7:09 PM, B. Fongo wrote: sub select_newer { my (@remote_packages, @installed_packages); (@remote_packages,

Re: Beta Testing a Robot

2003-12-04 Thread R. Joseph Newton
Guay Jean-Sébastien wrote: ... Though it doesn't benefit those who didn't post the question (and answers seldom do, since people who can answer questions normally don't need the answers), I would not assume that at all. Programming is an extremely open-ended art and set of skills. I think

Re: Beta Testing a Robot

2003-12-04 Thread drieux
On Dec 4, 2003, at 8:41 PM, R. Joseph Newton wrote: Guay Jean-Sébastien wrote: ... Though it doesn't benefit those who didn't post the question (and answers seldom do, since people who can answer questions normally don't need the answers), I would not assume that at all. Programming is an

Re: First Steps Perl DB programming (was: Re: first steps - read from files and make linklist)

2003-12-04 Thread R. Joseph Newton
Jonathan Jesse wrote: Sorry for being off topic. I am slowly trying to learn the basics and then eventually move over to the work on the SQL side of things. Thanks for the idea for the book, I'll look into that along with the documentation. Very good strategy. One study at a time.

Re: Beta Testing a Robot

2003-12-04 Thread R. Joseph Newton
Casey West wrote: I'm beta-testing a robot that searches Google when new questions are posed to the beginners' lists. I have no idea if it will be useful. :-) I'm going to watch it closely and hope it is. I'll remove it if I find that it does a bad job. Casey West Hi Casey, I'm