Re: [Perl-unix-users] Is there a regex trick for this?

2002-03-11 Thread Jenda Krynicky
From: "Michael Marziani" <[EMAIL PROTECTED]> > I have an array @exclude_dirs that I want my list of directories matched > against, and if it matches, then I want to go on to the next one. I > thought I saw someone do something like: > > if( $line =~ /@exclude_dirs/ ) { > next; > } Well ..

Re: [Perl-unix-users] Is there a regex trick for this?

2002-03-11 Thread Opeyemi . Bakare
I think your solution is better. More readable and less prone to error besides.. there is always more than one way to do it. But what do i know... I just work here. ;-) Ope Bakare ClearCase Administrator "Michael Marziani" <[EMAIL PROTECTED]> on 03/11/2002 01:06:50 PM To: [EMAIL PROTECT

[Perl-unix-users] Is there a regex trick for this?

2002-03-11 Thread Michael Marziani
Title: Message I have an array @exclude_dirs that I want my list of directories matched against, and if it matches, then I want to go on to the next one.  I thought I saw someone do something like:   if( $line =~ /@exclude_dirs/ ) {     next; }   Does that work?  My alternative is to just r

Re: [Perl-unix-users] Automatic ftp download script

2002-03-11 Thread Jason Purdy
This seems to me like one of those "more than one way" things - you could create a daemon or a cronjob to handle this for ya, depending on your needs (speed, efficiency and delay time as important factors that I can think of off the top of my head). Anyway, whatever you end up choosing, you ca

RE: [Perl-unix-users] Automatic ftp download script

2002-03-11 Thread Martin Moss
compare the timestamps of the file. do an ftp 'ls -l' and record the timestamps. do a significant pause, maybe 3 seconds and then check again. if the timestamps match the file has probably (sorry it may hav bust) been uploaded. Regards Marty > -Original Message- > From: [EMAIL PROTECTE

[Perl-unix-users] Automatic ftp download script

2002-03-11 Thread Craig Sharp
Ok, here is a good one. I need to be able to monitor a directory on an ftp server and then download the files when they have been uploaded to the server. The problem is how to determine when a file is there and if a file is there, that the file is done being uploaded from the source. I was go