CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced: Re: [FishMonger] FTP to multiple directories and finding specific files.: Edit Log


Dec 30, 2008, 7:32 AM

Views: 19464
Re: [FishMonger] FTP to multiple directories and finding specific files.

I'm sorry I'm not being forthwith with my explanations.
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.

Thanks again.

(This post was edited by cuboidgraphix on Dec 30, 2008, 7:39 AM)

Edit Log:
Post edited by cuboidgraphix (User) on Dec 30, 2008, 7:39 AM: Added POSIX comment.

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives