Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Confuse and lost in Transfer files process

by vrempire (Sexton)
on Sep 22, 2000 at 00:25 UTC ( [id://33590]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Confuse and lost in Transfer files process

<html><head><title></title></head><body><Hi friends,well thank you of all your answer.I finally get my program run right after all.
Since ,TIMTOWTDI,I did it using the same program I post,but with different arrangement.
From what I understand from tye,I think my algorithm is right from first place,but when it is run inside the computer,then the internal working of processing the algorithm is not run very well.
I do not know very detailed about this,but I think I got idea about it.
It might be something involving the buffer and the speed the perl program is interpreted.Before the process to FTP the file is done,completely,the file has been unlink inside the buffer which is used to send the file to other server.Please correct me if I am wrong.
So,that's why there is the time delay between the execution.
C:\Perl\bin>perl file.pl File x.wml has been transferred <br> File y.wml has been transferred <br> File z.wml has been transferred <br> <--Time delay around 3 seconds--> <--The file is inside the output buffer to be send--> <--while waiting to the remotehost to open port or connection,the unli +nk process has unlink all the files--> <--when the remotehost has give permission to enter the server,the fil +es has already been deleted--> <--So,that's why the error mesage below is sent--> x.wml: File not found y.wml: File not found z.wml: File not found <--mission 1 which is to send the files to other server is not accompl +ished--> C:\perl\bin>

So,what I did is ,I put the unlink process above the ftp proces,so each time the new files are been transferred,the program will delete the previous files which have been transferred already,and then go to ftp the new files.
This means that,after the new files have been transferred,it will not be deleted,until another user run the program again.So,I can check what is the files the user has transferred.If the server cannot be connected,the files whic are selected to transfer is not deleted yet inside the localhost.So,I can take the files and then transfer it manually,by using the e-mail etc,since it is not been deleted yet.
Anyway,now the program is working fine.Thanks for all your supports.
V R E M P I R E
P/S:Get the idea while washing the clothes, ;) </body></html>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://33590]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.