Copying files from One PC to another.

2004-09-10 Thread Denham Eva
Hello Listers. Please I am a beginner. I am making tentative steps to creating a script which will keep my Notebook and Workstation at work in sync. My first attempt is just to copy the files from the one to local. Here is my script - it works, but I suspect there should be a better way to d

A regex problem.

2004-09-06 Thread Denham Eva
Hello Gurus, In a script I have a piece of code as such:- * snip** my $filedate =~ s/(\d+)//g; * snip end *** The data I am parsing looks as such :- ** DATA C:/directory/MSISExport_20040814.csv C:/directory/MSISE

Setting special variable $/ to a regular expression

2004-08-26 Thread Denham Eva
Hello Perl Gurus, Is there some way to set the special variable $/ to a regular expression such as (.+?):(\d+):(.*) I have tried: local $/ =~ m/(.+?):(\d+):(.*)/; # But cannot change $/; local $/= /(.+?):(\d+):(.*)/; # Use of uninitialized value in pattern match m//. I am trying to p

RE: Pls Help with a Basic Script.

2004-08-20 Thread Denham Eva
Thanks Bob, I discovered this when using Mark's suggestion. [snip] You haven't read a row from SITELOG. So the regex below is checking the row from your SITES file. > > # Check the file for any ORA- entries > > if($_ =~ m/ORA-/) { > > # If it contains records, reverse the file > >

RE: Pls Help with a Basic Script.

2004-08-20 Thread Denham Eva
a) Thanks Mark for this. b) Thanks here again, I'll be using this in the future a lot and yes it is not what I expected, back to the drawing board. -Original Message- From: Anderson, Mark (Service Delivery) [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 12:42 PM To: Denha

Pls Help with a Basic Script.

2004-08-20 Thread Denham Eva
Please could the wise folks give me some help. Something is wrong and I can not find out what. When I run this program it returns everything is OK (Suspect a logic error somewhere), which is not possible as the logs in question do have data that I require (i.e. ORA-12571: TNS:packet writer failure

Calculating Disk Space and Freespace on Windows

2003-06-24 Thread Denham Eva
Hello, I'd appreciate any suggestions on how to calculate Disk space and Free Space. Many Thanks Denham Eva Oracle DBA Linux like TeePee... No Windows, No Gates and Apache inside! _ This e-mail message has

Please help... struggling beginner.

2003-06-23 Thread Denham Eva
#--- -- #End Of Dump Denham Eva Oracle DBA Linux like TeePee... No Windows, No Gates and Apache inside! _ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal For more

Renaming a File in Win32.

2002-07-29 Thread Denham Eva
fine, I can probably go this route without any serious problems, however I still don't know - why? What happens to a file when you use rename? Is it corrupted? All my tests with rename have not corrupted the logfile yet. Rgds Denham Eva Oracle DBA In UNIX Land On a quiet Night, you can hea

RE: Comparison of two log files.

2002-07-17 Thread Denham Eva
Thanks to Sudarshan and John, for the suggestions. Very much appreciated! Rgds Denham DISCLAIMER This message is for the named person's use only. It may contain confidential, proprietary or legally priv

Comparison of two log files.

2002-07-17 Thread Denham Eva
Hello listers, I would like to submit a script I have written and it does work. However I am sure that it can be: a. Shorter b. Faster As you will see it is not very well written. Certainly nothing compared to some of the listers code I have seen here. I am new at perl so here goes. Some of you

RE: Regex Problem - please help

2002-06-05 Thread Denham Eva
Message- From: Denham Eva [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 3:42 PM To: BeginnersPerl (E-mail) Subject: Regex Problem - please help Hello Listers, I am struggling to get this right. Beginner in perl, so please forgive ignorance, but the regular expressions are confusing

Regex Problem - please help

2002-06-05 Thread Denham Eva
s a whole string, which I know, unfortunately I am not to good with the regex part. Any help will be much appreciated. Denham Eva Oracle DBA In UNIX Land On a quiet Night, you can hear the Windows machines reboot.

Perl in a Nutshell

2002-05-15 Thread Denham Eva
Hello list, I see a number of mails about Perl books. Most of them mention the O'Reilly Books. Does anyone use Perl in a Nutshell? Is it any good as a reference book? Rgds Denham Eva Oracle DBA In UNIX Land On a quiet Night, you can hear the Windows machines r