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
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
[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
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
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
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"
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
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:
> >
> >
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
> 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
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
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
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
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
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
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:
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
> 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
[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
--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?
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...
>
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
> -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 _
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
--- 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
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
--- 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) {
>
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
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:
> 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
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
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
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
> -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
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
> -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
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,
> -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
> >
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
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.
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
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
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
> -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
44 matches
Mail list logo