RE: [Perl-unix-users] Hash of Hash Perl Questions.....

2003-02-26 Thread Thomas_M
Oops, minor syntax error in my last post, but the point is still valid. > -Original Message- > From: Thomas_M > Sent: Wednesday, February 26, 2003 10:35 AM > To: 'Williams, P. Lane'; [EMAIL PROTECTED] > Subject: RE: [Perl-unix-users] Hash of Hash Perl Questio

RE: [Perl-unix-users] Hash of Hash Perl Questions.....

2003-02-26 Thread Thomas_M
PLW wrote: > Anyone have any basic pointers of how to handle the array > portion?? I am thinking I will need to include a subroutine > that will do the job. This is going to sound funny, but here's my advice: use a hash. Take your HoHoL and make it a HoHoH. > This is what I would like it to lo

RE: [Perl-unix-users] OT: mailbox converter ???

2003-02-21 Thread Thomas_M
MDS wrote: > Following is what I want to do -- can anybody recommend a > module to facilitate this? > > [1] Periodically visit each of many hundreds of maildir's; cron > [2] Gather all messages of a certain age and older; Mail::Box::Maildir (part of the Mail::Box suite) > [3] Move those messa

RE: [Perl-unix-users] Forks vs Threads on Unix?

2003-02-10 Thread Thomas_M
Merrill Cornish [mailto:[EMAIL PROTECTED]] wrote: > However, Unix has a real fork(). So how does forking a > process compare in > start-up time and memory requirements as compared to creating > a new thread? Check the c.l.p.m newsgroup for many discussions on threads vs. forks. I'll pull a sh

RE: [Perl-unix-users] How-to write a daemon

2003-01-30 Thread Thomas_M
Title: Message Many ideas here: http://search.cpan.org/search?query=daemon&mode=all -- Mark Thomas    [EMAIL PROTECTED] Internet Systems Architect User Technology Associates, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;   -Or

[Perl-unix-users] RE: determining if a scalar is an integer or not

2003-01-30 Thread Thomas_M
> another way is to use a regex and check if the var only > consists numbers: > > if ($var1 =~ /^\d+$/) { > print "is int\n"; > } else { > print "not int" > } How about -7 or 5.0? Both are integers. Wouldn't it be better for him to use one of the answers in the FAQ? http://www.perl

[Perl-unix-users] RE: Excel

2003-01-27 Thread Thomas_M
> How do one determine the amount of lines within a spreadsheet > Ronald Since you posted in both the unix and win32 lists, I assume you'd like a cross-platform answer. Here's one: use Spreadsheet::ParseExcel; my $oBook = Spreadsheet::ParseExcel::Workbook->Parse('spreadsheet.xls');

RE: [Perl-unix-users] Problems with Net::SMTP

2003-01-23 Thread Thomas_M
> $ telnet foohost 25 > 220 foohost Microsoft ESMTP MAIL Service, Version: > 5.0.2195.5329 ready at Thu, 23 Jan 2003 09:47:19 -0500 HELO > 250 foohost Hello [xxx.xxx.xxx.xxx] ... ... > > So, I know that there is a smtp daemon running on foohost, > and that the machine I am running on can commu

[Perl-unix-users] RE: Remote executing a script using perl

2003-01-23 Thread Thomas_M
> Is it possible to execute a script remotely on another PC from a perl > script. If so what must I use to accomplish this task > Ronald There are many, many ways to do this. You really should be more specific about your needs. Is this communication between two large systems where you would like

RE: [Perl-unix-users] Perl and UNix

2003-01-22 Thread Thomas_M
ginal Message - > From: "Peter Eisengrein" <[EMAIL PROTECTED]> > To: "'Poon, Kelvin (Infomart)'" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, January 21, 2003 6:46 PM > Subject: RE: [Perl-unix-users] Perl and UNix >

RE: [Perl-unix-users] Perl and UNix

2003-01-21 Thread Thomas_M
Poon, Kelvin wrote: > Ok, I need a perl script that opens/access a file on a Unix > system (RS6000/AIX to be specific). Well, you would think > this is a beginner problem, and yes it would be if I told you > ur perl script is on the unix system itself. BUt the problem > is my perl script has

RE: [Perl-unix-users] RE: DIV tags

2003-01-06 Thread Thomas_M
Mundell, R. (Ronald) [mailto:[EMAIL PROTECTED]] wrote: > Good Day > > I am trying to move away from JAVA and to do the same in just perl/cgi/html Note that what you are actually talking about is Javascript. Despite the similar name, it is not the same thing as Java at all. The Javascript functio

RE: [Perl-unix-users] Printing CGI WEB Pages

2003-01-03 Thread Thomas_M
Title: Message You can pretty much answer this question and all your previous questions by reading the documentation on the CGI module. You can use perldoc CGI, or this URL: http://search.cpan.org/author/LDS/CGI.pm-2.89/CGI.pm. Also, the author of the module has a book: http://www.amazon.com/

[Perl-unix-users] RE: RE: Win32::AdminMisc module on linux

2002-12-26 Thread Thomas_M
Kavita wrote: > Actually my problem is that i wanna put up one website on > intranet.In which i wanna authenticate intranet's users to NT > Domain Controller(PDC).Also i wanna get rights of users on > shared folders.And also wanna display those files and folders > web-based. I have tred ur Win

RE: [Perl-unix-users] Import Excel Spreadsheet into MySQL

2002-10-21 Thread Thomas_M
Henry, I think you got that backwards. What he wants is Spreadsheet::ParseExcel to extract content from the Excel files, and DBI and DBD::mysql to insert the data into the database. -- Mark Thomas[EMAIL PROTECTED] Internet Systems Architect User Technology Associates, Inc.

RE: [Perl-unix-users] Per and MQ

2002-10-16 Thread Thomas_M
Mundell, R. (Ronald) [mailto:[EMAIL PROTECTED]] wrote without first checking CPAN: > Does anyone know if there is a module for perl to talk to IBM's MQ series? Here are two places you can find your answer: http://www.google.com/search?q=perl+mqseries http://search.cpan.org/search?query=mqseri

RE: [Perl-unix-users] Remove blank lines from a file

2002-08-15 Thread Thomas_M
Of course there's a one-command-liner: perl -ne "print if /\S/" < file.txt > file2.txt -- Mark Thomas[EMAIL PROTECTED] Sr. Internet Architect User Technology Associates, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;; > -Origin

RE: [Perl-unix-users] URGENT Regex problem

2002-07-30 Thread Thomas_M
Assuming that's a caret followed by a left square bracket (as opposed to an Escape character), you can use: s/^\^\[//; -- Mark Thomas[EMAIL PROTECTED] Sr. Internet Architect User Technology Associates, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;

RE: [Perl-unix-users] Unknown Telnet session Type

2002-07-29 Thread Thomas_M
As 99% of the Net::Telnet-related questions on list list are prompt problems, I will ask you to check your prompt. Does it consider "one:" to be a valid prompt? If not, $telnet->cmd() will not work. Either modify your prompt or go about it another way (like waitfor()). Also, use the module's exce

RE: [Perl-unix-users] Duplicate sequence

2002-06-25 Thread Thomas_M
How is this different from removing duplicates in general? Use a hash. And read 'perldoc -q duplicate' -- Mark Thomas[EMAIL PROTECTED] P.S. Don't send questions directly to members of this list. Just send it to the list. They'll see it. > -Original Message- > From: Ruotti,

[Perl-unix-users] RE: pattern match timeout error using Net::Telnet

2002-04-12 Thread Thomas_M
You don't need to waitfor() the prompt. Just use cmd() and Net::Telnet will automatically stop reading at the prompt. The prompt will not be included in the return value of cmd(). This, of course, assumes you've specified the prompt correctly. If this is your problem, you can use the nice debuggi

RE: [Perl-unix-users] LWP::Simple returns nothing

2002-03-25 Thread Thomas_M
> Hi! > > I tested the script in another UNIX server and it runs fine > so i think everything is fine. > [script snipped] > > This script in other UNIX server returned the yahoo! page and > 'end of output' text at the end of the page. > > I dont understand. Please let me know if you know what

RE: [Perl-unix-users] Linux & alter/generate MS-Word document

2002-02-21 Thread Thomas_M
Do you have control of the initial format of the document? The RTF format is ASCII and Save as HTML outputs a pseudo-XML document, easily parseable. You can even rename them .doc and word will open them just as if they were native word documents. > -Original Message- > From: [EMAIL PROTEC

RE: [Perl-unix-users] How to make a job dependent on another

2002-02-12 Thread Thomas_M
AITHA, BHEEMSEN (SBCSI) [mailto:[EMAIL PROTECTED]] wrote: > I want to make my perl script job to be dependent on a > particular cron job. How do I do that ? What do you mean by dependent? Run immediately after the execution of a cron job? You can add your script to the same crontab as the existi

RE: [Perl-unix-users] Perl reporting formats

2001-12-21 Thread Thomas_M
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > This is an excerpt from my script. In summary the script > works like this > > For each database ($database_name) listed in a string the > script below should do > the following (while loop) [...] Please copy and paste the appropriate s

RE: [Perl-unix-users] Server-Side Includes in Perl Scripts

2001-12-07 Thread Thomas_M
This is correct for Apache and probably NES too. There are other servers that do this though. I posed the question to an apache newsgroup and the answer was that it isn't any less efficient to open and print the file in perl. I guess convenience isn't high on their list of priorities. What I ended

RE: [Perl-unix-users] Stoping a web based application

2001-11-15 Thread Thomas_M
B. Wise: > > I have a web based application that is triggered by a > > submit button. While this script is running is it > > possible via the same web page to have a button that > > will stop the process sort of like a cancel? Jason: > Short answer: No. You need to either kill the process from

RE: [Perl-unix-users] OT: listing NT processes

2001-11-13 Thread Thomas_M
> I know this is a bit off subject but the question might help > everyone. I need to be able to list the running processes in > NT or 2K (server and workstation). You'd find several answers if you searched the Perl-Win32-Users mailing list. One way is the Win32::Iprocess module, docs here: htt

RE: [Perl-unix-users] FW: [CGI] questions

2001-10-26 Thread Thomas_M
Benjamin Eagle wrote: > > to create a script to produse a html documentall I have to > > do is [snip] > > and it should work right?? Why don't you try it yourself? And if you have a specific problem getting it to work, ask on the Perl-Win32-Web list, not this one. -- Mark Thoma

RE: [Perl-unix-users] perl and ncurses

2001-10-23 Thread Thomas_M
> Hi all, > > Does anyone know where I can find info on Ncurses modules and > how to program perl for ncurses. I'm not sure I understand. Is there a reason why you want ncurses instead of the standard curses module available on CPAN? Or are you asking for additional examples, widgets, etc? --

RE: [Perl-unix-users] Password Security

2001-09-20 Thread Thomas_M
First of all, (I may catch some flack for saying this on this list) using PHP can be an option--you can combine PHP and perl in a web application; the browser won't know the difference. There's something to be said for writing in the language you are most familiar with, particularly for security a

RE: [Perl-unix-users] How to make a Silent POST method?

2001-08-31 Thread Thomas_M
> How do we do a silent POST to a script? > > In other words is there a way to simulate the action of > clicking on the > SUBMIT button to post the data from a form. I want to POST > without having to click on the submit button. > > If the script see a certain variable or tag it will POST > a

RE: [Perl-unix-users] Login Security

2001-06-08 Thread Thomas_M
I disagree. The password would be sent in the clear to the cgi script. At that point, it is too late to benefit from the SSL encryption; you might as well not have it. -- Mark Thomas[EMAIL PROTECTED] Sr. Internet Architect User Technology Associates, Inc. $_=q;Kvtuyb

RE: [Perl-unix-users] Print a variable's value with a variable

2001-05-22 Thread Thomas_M
Peter, Your file is syntactically valid Perl, so you can eval() it to do what you want. - Mark. ___ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

RE: [Perl-unix-users] How I can capture a information when I execute scritp in pine

2001-04-19 Thread Thomas_M
> How I do to capture a information in my script in pine enviroment. What's a "pine environment"? Canada? :-) > My problem is that i have a script that i call in pine and > this print me a > data but before he do it, had to ask to a information that I have to > write them print this data, but

RE: [Perl-unix-users] Module Listing

2001-04-13 Thread Thomas_M
> I'm sure this is an obvious question, and that I've just > missed it in the > FAQ somewhere...but how can I get a list of Perl modules > installed on my system? Here's a one-liner (just did this, perhaps someone can improve it): perl -MFile::Find -e 'sub f {print $File::Find::name,"\n" if

RE: [Perl-unix-users] how to parse WORD, PPT and XLS files?

2001-03-27 Thread Thomas_M
This is what you want: http://www.wvware.com/ Free and top-quality. Used by many CMS systems. -- Mark Thomas[EMAIL PROTECTED] Sr. Internet Architect User Technology Associates, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;; > -

RE: [Perl-unix-users] Monitoring threads

2001-03-27 Thread Thomas_M
I don't understand. If top does what you want, why don't you use it? It works on Solaris. -- Mark Thomas[EMAIL PROTECTED] Sr. Internet Architect User Technology Associates, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;

RE: [Perl-unix-users] newgrp

2001-03-08 Thread Thomas_M
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] wrote: > Here are some examples of a shortened script, the commands I > used and the results I got. The "%" separate the samples. > None of the samples when run, printed anything. As your error message implies, exec() terminates your perl script. Yo

RE: [Perl-unix-users] Where can i get pop3Client.pm

2001-03-08 Thread Thomas_M
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] failed to read the FAQ before writing: > Where can i get pop3Client.pm module software.?? Umm, CPAN? http://search.cpan.org/search?mode=module&query=pop3client -- Mark Thomas[EMAIL PROTECTED] Sr. Internet Architect User

RE: [Perl-unix-users] Memory Leaks

2001-02-27 Thread Thomas_M
This is a good resource if you haven't checked this already: http://www.perl.com/pub/doc/manual/html/pod/perldebug.html#Debugging_Perl_me mory_usage Also, if this is a daemon, there is a trick that many daemons use to make sure any memory leaks do not eventually fill up all available memory: they

RE: [Perl-unix-users] SetUID?

2001-02-15 Thread Thomas_M
To set a script up as setuid 'news', do the following: chown news.news yourscript.pl chmod 4755 yourscript.pl An alternative (considered a bit more secure) is to use 'sudo'. You can configure sudo to allow a specific user (i.e. the apache user) to execute yourscript.pl as 'news'. sudo comes with

RE: [Perl-unix-users] File Copy and Move on Unix (Solaris)

2001-02-05 Thread Thomas_M
> Thanks. I use File::Copy but I did not find anything > that duplicates the Move (Copy\Delete) functionality. >From the File::Copy docs: If possible, move() will simply rename the file. Otherwise, it copies the file to the new location and deletes the original. -- Mark Thomas

RE: [Perl-unix-users] executed a another programa

2000-12-20 Thread Thomas_M
Ricardo Cumberbatch L. [mailto:[EMAIL PROTECTED]] > I want to do somethin like this: > > execute de nslookup comand > # nslookup > > then when this execute pass this > > server domain > > How can I do some thin like this, execute a program them pass it some > parameter to it. There are at le

RE: [Perl-unix-users] Module Problems

2000-11-15 Thread Thomas_M
Timothy Flynn wrote: > I have a module that I created that I am trying to access from a > script that is started with the nohup option. This means > that, unless I > want to have to go to the scripts home directory each time I > start it I need > to be able to find the module at exec time