Don't ask to ask, just ask | |
PerlMonks |
Confuse and lost in Transfer files processby vrempire (Sexton) |
on Sep 18, 2000 at 07:59 UTC ( [id://32913]=perlquestion: print w/replies, xml ) | Need Help?? |
vrempire has asked for the wisdom of the Perl Monks concerning the following question:
<html><head><title></title></head><body>
Hi, Currently,I am having a problem regarding the way to transfer the files across the server. Before this,I am using the Net::FTP to transfer the files.But since,I am not the administrator of the server,I do not have the privilege to install the libnet on it. So,I try another alternative way,which is using the UNIX and FTP command inside the perl script. This is the script:
This script works fine,where 1.The file succeedly put inside the remotehost1 server.OK 2.The files @fileftp can be copied to 'transfer' folder.OK except Now I want to delete the files from @fileftp in the original folder in local host after I copy them to 'transfer'. But ,when I insert another lines below the programs,which are
Then the 'Hell Breaks Loose'.What happened is 1.The files cannot be put inside the remote host server.KO. 2.The files from @fileftp can be copied from the local folder to 'transfer'.OK. 3.The files where I put the @fileftp in the first place,is deleted.(Above the 'transfer' directory).OK After I execute it inside perl interpreter,it shows Please help me on this problem,since I have tried to solve it in many other different ways,but still stuck in the same place.I really really apreciate it if anyone can tell me what's wrong with it and how to solve it.Thank you in advance. </body> </html>
Back to
Seekers of Perl Wisdom
|
|