Hello,
I am writing a Perl script to copy a file from one Unix
server to
another.
This input file is created by an FTP process from Windows to
Unix,
which is then picked by the Perl process, which runs
continuously.
I have some issues in this ,
My program reads the file whenever it finds any in the
folder and then
copies to another directory.
The problem is that it reads the same before the FTP
completes writing
the file.
This happens for large sized files.
I tried using open function which fails if the file is being
used by
FTP processes. Hence I can check if the file is used by FTP.
But It
works only for small files, but for big files (size > 2
MB) , it picks
the file before FTP processes has completed writing the
file.
Please guide me in how can I check if the FTP process has
completed the
file writing and then I can continue with copying the ftpyed
file.
Thanks and Regards,
Santoshkrishna
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl Programming" group.
To post to this group, send email to perl-programming googlegroups.com
To unsubscribe from this group, send email to
perl-programming-unsubscribe googlegroups.com
For more options, visit this group at
http://groups-beta.google.com/group/perl-programming
-~----------~----~----~----~------~----~------~--~---
|