[EMAIL PROTECTED] wrote: > HI! > I need to do something to automatize one process.
OK, what platform? Unix-ish, Windows, or other? > When a file in directory reach 1 GB I need transfer file for other > machine (ftp). You can write a Perl program to do this. The program can run continually and check the file every so often, or the file can be run from a scheduler like cron. The -s operator will tell you the size of a file: $bytes = -s "somefile.txt"; To send the file an FTP server, use the Net::FTP module from CPAN. After you send the file, you can remove it with the unlink() function, or clear it by opening for output and then closing again. HTH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>