Re: monitor for a filename

2004-05-07 Thread John W. Krahn
Charles Farinella wrote: > > I need to look at a directory for about 90 seconds, and if a certain > file shows up, do something with it. A pointer to a man page or any > reference would be appreciated. If you know the file name in advance then use one of the file test operators like -e or maybe

Re: Array in a regexp

2004-05-07 Thread John W. Krahn
Jason Dusek wrote: > > Hi List, Hello, > Let's say I want to know if anything in @ARGV has one of a certain list > of suffixes in it. So I write: > >foreach (@ARGV) { > print if (/\.(fish|foul)$/); >} > > But if I have a long list of suffixes, then I would like to store the > suff

RE: process signals

2004-05-07 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > If you dont understand my question then I assume you do not know unix > or tail -f ? You're right, those are both new to me. > I want to after a sleep of 5-8 seconds, send a kill > signal to the previous command then increment the counter. thank > you! Sorry, I think

RE: process signals

2004-05-07 Thread Jayakumar Rajagopal
Bottom posted: On Friday 07 May 2004 11:00 am, [EMAIL PROTECTED] wrote: > yeah ok whatever I want to use perl not ksh...as simple as that. > > Derek B. Smith > OhioHealth IT > UNIX / TSM / EDM Teams > > > > > > > "Jayakumar Rajagopal" <[EMAIL PROTECTED]> > 05/07/2004 01:16 PM > > > To

Re: process signals

2004-05-07 Thread DBSMITH
thank you! This was all I wanted as I am teaching myself perl and am still new. Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams Phil Schaechter <[EMAIL PROTECTED]> 05/07/2004 02:08 PM To: [EMAIL PROTECTED] cc: Subject:Re: process signals They e

RE: process signals

2004-05-07 Thread DBSMITH
yeah ok whatever I want to use perl not ksh...as simple as that. Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams "Jayakumar Rajagopal" <[EMAIL PROTECTED]> 05/07/2004 01:16 PM To: <[EMAIL PROTECTED]>, "Bob Showalter" <[EMAIL PROTECTED]> cc: "Beginners Perl"

Re: Using variables in a regex

2004-05-07 Thread KEVIN ZEMBOWER
John, just wanted to thank you for your help. I've also pasted in the file, a sample data file and the output to this message, in case anyone's following along in the archives. You're suggestions to improve time were amazing. I went from analyzing an 84,000 line log file in 30 minutes to just s

Re: Array in a regexp

2004-05-07 Thread Jenda Krynicky
From: Alok Bhatt <[EMAIL PROTECTED]> > --- Jason Dusek <[EMAIL PROTECTED]> wrote: > > Hi List, > > But if I have a long list of suffixes, then I would > > like to store the > > suffixes in an array, and then evaluate the array in > > my regular > > expression. What does this? I've tried: > > > >

RE: process signals

2004-05-07 Thread Jayakumar Rajagopal
Mr Smith, I saw your elementary question at about 8:50 AM. I did not answer it, since it was not clear to me too. I have seen Bob ( who I have never spoken with or by no means friend of me) answering good, difficult questions very legibly. If you think you have know better unix, then you

Re: monitor for a filename

2004-05-07 Thread Wiggins d Anconia
> I need to look at a directory for about 90 seconds, and if a certain > file shows up, do something with it. A pointer to a man page or any > reference would be appreciated. > perldoc -f opendir perldoc -f readdir A simple way to do this is to open the directory, loop over its contents with re

RE: process signals

2004-05-07 Thread Wiggins d Anconia
Please bottom post > > If you dont understand my question then I assume you do not know unix or > tail -f ? That would be a shocker. Trust me, Bob knows about unix and tail... I want to after a sleep of 5-8 seconds, send a kill signal to > the previous command then increment the counte

monitor for a filename

2004-05-07 Thread Charles Farinella
I need to look at a directory for about 90 seconds, and if a certain file shows up, do something with it. A pointer to a man page or any reference would be appreciated. --charlie -- Charles Farinella Appropriate Solutions, Inc. 603-924-6079 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

RE: process signals

2004-05-07 Thread DBSMITH
If you dont understand my question then I assume you do not know unix or tail -f ? I want to after a sleep of 5-8 seconds, send a kill signal to the previous command then increment the counter. thank you! Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams Bob Showalter <[EMAIL PROT

Re: Best way to Send Hash to a Socket

2004-05-07 Thread JupiterHost.Net
Wiggins d Anconia wrote: On Wed, 05 May 2004 11:38:33 -0500, [EMAIL PROTECTED] (Jupiterhost.Net) wrote: Hello list, To day I am trying to figure out the best way to send a hash to a socket and have the receiver be able to use it as a hash. The best way I've done so far is to Data::Dumper the

Re: Best way to Send Hash to a Socket

2004-05-07 Thread JupiterHost.Net
zentara wrote: On Wed, 05 May 2004 11:38:33 -0500, [EMAIL PROTECTED] (Jupiterhost.Net) wrote: Hello list, To day I am trying to figure out the best way to send a hash to a socket and have the receiver be able to use it as a hash. The best way I've done so far is to Data::Dumper the hash into

installing perl 5.6.1

2004-05-07 Thread Johnson, Shaunn
Howdy: I'm trying to install 5.6.1 on RHEL version 3 from source. After looking at google for some problems related to the and command errors, I get to the point where I need to make / make test. At the end, I get the following error: [snip] DB_File.xs: In function `ParseOpenInfo': DB_File.xs:

Re: perl code

2004-05-07 Thread Lino Iozzo
I don't understand when you say: "Really without more info there is not much more I can help with." I am willing to provide as much info as you need. what you have said already is helpful and is inline with my thinking. I wish to look in a direcory and display to the user all of the files i

Re: NNTP Server responses from a perl script?

2004-05-07 Thread Wiggins d Anconia
> Hi all! I'm working on my second ever perl script for a school assignment > and running into a quirk that I can't seem to figure out. > > If I telnet to an nntp server that requires authentication and issue a > command without authenticating first, I get an error message "480 > Authentication R

RE: process signals

2004-05-07 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > I have an application system command that is like tail -f in UNIX and > I want to say > > x=1 > while x < 10 > do > 'command' append to log > print "\n" append to log > issue HANGUP or KILL SIGNAL > x+=1 > done > > How do I issue a hangu

RE: Oracle:DBD and perl 5.8.0 - SV

2004-05-07 Thread Johnson, Shaunn
--belay that last transmission - i --*have* to roll back to perl 5.6.x. --sorry to jump the gun. -X --original post-- Is there a version of Oracle:DBD that will compile with 5.8.0 or do I have to rollback to 5.6.1?

Re: Array in a regexp

2004-05-07 Thread Jeff 'japhy' Pinyan
On May 7, Jason Dusek said: >But if I have a long list of suffixes, then I would like to store the >suffixes in an array, and then evaluate the array in my regular >expression. What does this? I've tried: > > @SUFF = (fish,foul); I think you mean @SUFFIXES. That's the array you use below... >

Re: Perl Scripts examples

2004-05-07 Thread James Edward Gray II
On May 7, 2004, at 4:23 AM, anish mehta wrote: Hi all! I am new to perl. Can somebody tell me about some link on internet from where i can find some scripts to begin with so that i can start getting style of writing code in perl. I have gone through o'reilly book and is looking for some practi

RE: Line number variable....

2004-05-07 Thread Shaw, Matthew
> -Original Message- > >there a variable containing the actual > > source-line number during execution? > > > > Yes, the $. This is incorrect, $. actually contains the 'current line number' from the last accessed file handle. It will be undef if no filehandles have been accessed. The _

Oracle:DBD and perl 5.8.0

2004-05-07 Thread Johnson, Shaunn
Howdy: I have been trying to install Oracle:DBD 1.14 or 1.15 with perl 5.8.0 and after adding different paths to compensate for the missing Config.pm, et al, it finally said, '... this isn't 5.6.0' and the process stopped. Is there a version of Oracle:DBD that will compile with 5.8.0 or do I hav

Re: Array in a regexp

2004-05-07 Thread Alok Bhatt
--- Alok Bhatt <[EMAIL PROTECTED]> wrote: > > --- Jason Dusek <[EMAIL PROTECTED]> wrote: > > Hi List, > > But if I have a long list of suffixes, then I > would > > like to store the > > suffixes in an array, and then evaluate the array > in > > my regular > > expression. What does this? I've tr

Pal ( Replacement for Cal ) Parse Sort Term Width

2004-05-07 Thread Paul D. Kraus
I just started using the program Pal its a unix terminal emulator. I wanted to wrap it with a perl script so that I could sort events based on A1 codes. So A1 A2 A3 C3 D4 C2 would get sorted in order of priority. So i wrote a quick little perl script to pipe the output of pal to have it resort i

Re: Array in a regexp

2004-05-07 Thread Alok Bhatt
--- Jason Dusek <[EMAIL PROTECTED]> wrote: > Hi List, > But if I have a long list of suffixes, then I would > like to store the > suffixes in an array, and then evaluate the array in > my regular > expression. What does this? I've tried: > >@SUFF = (fish,foul); >foreach (@ARGV) { >

RE: Perl Scripts examples

2004-05-07 Thread Charles K. Clarkson
anish mehta [mailto:[EMAIL PROTECTED] : : I am new to perl. Can somebody tell me about some link : on internet from where i can find some scripts to begin : with so that i can start getting style of writing code : in perl. I have gone through o'reilly book and is : looking for some practical exe

Re: perl code

2004-05-07 Thread Lino Iozzo
please excuse my inability to understand this code. but what is: while ( <*> ) and where is the piece of code that tells what directory/path to look in? where does it go? Thanks, Lino "Paul D. Kraus" <[EMAIL PROTECTED]> wrote: On Thu, May 06, 2004 at 03:28:51PM -0700, Lino Iozzo wrote:

Re: Perl Scripts examples

2004-05-07 Thread Alok Bhatt
> I am new to perl. Can somebody tell me about some > link on internet from > where i can find some scripts to begin with so that > i can start getting > style of writing code in perl. I have gone through > o'reilly book and is > looking for some practical exercises. Hi, the examples from Learn

process signals

2004-05-07 Thread DBSMITH
I have an application system command that is like tail -f in UNIX and I want to say x=1 while x < 10 do 'command' append to log print "\n" append to log issue HANGUP or KILL SIGNAL x+=1 done How do I issue a hangup signal to this process using perl? Derek B. Sm

Array in a regexp

2004-05-07 Thread Jason Dusek
Hi List, Let's say I want to know if anything in @ARGV has one of a certain list of suffixes in it. So I write: foreach (@ARGV) { print if (/\.(fish|foul)$/); } But if I have a long list of suffixes, then I would like to store the suffixes in an array, and then evaluate the array in my

Re: perl code

2004-05-07 Thread Paul D. Kraus
On Thu, May 06, 2004 at 03:28:51PM -0700, Lino Iozzo wrote: > Here is an example: > > I have a file and save it to a directory whether it is one file or multiple files > then i go to my perl script and type retrievelist.pl this should look into the > specified directory in the code and display

RE: Line number variable....

2004-05-07 Thread NYIMI Jose (BMB)
> -Original Message- > From: Paul Johnson [mailto:[EMAIL PROTECTED] On Behalf Of Paul Johnson > Sent: Friday, May 07, 2004 1:20 PM > To: NYIMI Jose (BMB) > Cc: Gabor Urban; [EMAIL PROTECTED] > Subject: Re: Line number variable > > > On Fri, May 07, 2004 at 01:01:01PM +0200, NYIMI Jos

Re: Line number variable....

2004-05-07 Thread Paul Johnson
On Fri, May 07, 2004 at 01:01:01PM +0200, NYIMI Jose (BMB) wrote: > > -Original Message- > > From: Gabor Urban [mailto:[EMAIL PROTECTED] > > > > I was going through the manuals some times, but could not > > find it. Is there a variable containing the actual > > source-line number durin

RE: Line number variable....

2004-05-07 Thread NYIMI Jose (BMB)
> -Original Message- > From: Gabor Urban [mailto:[EMAIL PROTECTED] > Sent: Friday, May 07, 2004 12:57 PM > To: [EMAIL PROTECTED] > Subject: Line number variable > > > Hi, > > I was going through the manuals some times, but could not > find it. Is there a variable containing the act

Line number variable....

2004-05-07 Thread Gabor Urban
Hi, I was going through the manuals some times, but could not find it. Is there a variable containing the actual source-line number during execution? Gabaux Linux is like a wigwam: no gates, no windows, and an apache inside! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: How to write a Perl module

2004-05-07 Thread NYIMI Jose (BMB)
> -Original Message- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED] > Sent: Friday, May 07, 2004 12:32 PM > To: [EMAIL PROTECTED] > Subject: Re: How to write a Perl module > > > From: Owen <[EMAIL PROTECTED]> > > As an exercise in making an LDP How-To as well as confirming my own > >

Re: NNTP Server responses from a perl script?

2004-05-07 Thread Jenda Krynicky
From: "Rick Wilson" <[EMAIL PROTECTED]> > Hi all! I'm working on my second ever perl script for a school > assignment and running into a quirk that I can't seem to figure out. > > If I telnet to an nntp server that requires authentication and issue a > command without authenticating first, I get

Re: How to write a Perl module

2004-05-07 Thread Jenda Krynicky
From: Owen <[EMAIL PROTECTED]> > As an exercise in making an LDP How-To as well as confirming my own > limited knowledge of making a Perl module I wrote. > > http://www.pcug.org.au/~rcook/PerlModule_HOWTO.html > > It is for beginners, just "do this" and it should work without any > explanation.

Re: Variable "$some_var" will not stay shared

2004-05-07 Thread Perrin Harkins
On Thu, 2004-05-06 at 17:19, Beau E. Cox wrote: > But maybe I could explain the overall picture. I am trying to embed > 'any' script (whthout modification) in perl; I use a perl package > (which is run via a c program) to maintain 'persistence' of the script > which is read from disk. This must be

NNTP Server responses from a perl script?

2004-05-07 Thread Rick Wilson
Hi all! I'm working on my second ever perl script for a school assignment and running into a quirk that I can't seem to figure out. If I telnet to an nntp server that requires authentication and issue a command without authenticating first, I get an error message "480 Authentication Required" Ho

Perl Scripts examples

2004-05-07 Thread anish mehta
Hi all! I am new to perl. Can somebody tell me about some link on internet from where i can find some scripts to begin with so that i can start getting style of writing code in perl. I have gone through o'reilly book and is looking for some practical exercises. Any suggestions will be highly a

RE: How to write a Perl module

2004-05-07 Thread NYIMI Jose (BMB)
> -Original Message- > From: Owen [mailto:[EMAIL PROTECTED] > Sent: Friday, May 07, 2004 5:40 AM > To: [EMAIL PROTECTED] > Subject: How to write a Perl module > > > > As an exercise in making an LDP How-To as well as confirming > my own limited knowledge of making a Perl module I wrote