Re: [Perl-unix-users] URGENT: Scan a directory and ftp if thereare files

2003-06-09 Thread $Bill Luebkert
James Schappet wrote: > UNTESTED SAMPLE CODE > > > > #!/usr/bin/perl > net use Net::FTP > > > $DIRName = "/ftp/dir"; > > chdir $DIRName; > > @Files = glob *; > > $ftp = Net::FTP->new("HOST.DOMAIN.COM", Debug=>0); > $ftp->login("user", "password"); > $ftp->cwd("/remote/dir"); > foreach (@Fil

Re: [Perl-unix-users] URGENT: Scan a directory and ftp if thereare files

2003-06-09 Thread $Bill Luebkert
Martin Moss wrote: > Rather than using crontab, which is pretty much a pull method, why not use a > perl daemon process - to use push? I fail to see what crontab has to do with whether the operation is push or pull. The app is free to choose what method is appropriate and has no bearing on whether