Dec 30, 2008, 7:32 AM
I'm sorry I'm not being forthwith with my explanations.
Re: [FishMonger] FTP to multiple directories and finding specific files.
The files I am trying to copy are CDRs or call logs for a telecommunications company. These CDRs/AMA files do not have a file extension. The content are simply in binary code, thus I do not want to transfer them in ASCII mode. The problem is that whenever I remove the $ftp->binary, the files are found and transferred successfully in the ASCII mode, which are useless to me at that point. The reason why I have the chdir "/home/AMA" ... I don't really know why I have it, but I saw it on a sample code, but basically it is the repository where I want the files copied to.
*Note: The script is ran from the backup server. It's suppose to log into our 'SWITCH' and retrieve the files that are found and are then copied to the same backup server.
The code I'm trying to achieve is one that would log into our 'SWITCH' and check the directories for yesterday's CDRs and copy them into a backup server.
If I haven't stressed it enough, I really need them to be copied/transferred in binary mode, since ASCII would corrupt the file.
I hope I'm being more direct with my purpose, and I really appreciate you taking time to help me with this problem.
Oh btw ... The posix code that you had given me before did not work. I had the same error I had stated before, and I had 'use'. That's why I am still using my original code. Maybe if you repost the code, I can copy and paste it and see if it works.
(This post was edited by cuboidgraphix on Dec 30, 2008, 7:39 AM)