View Single Post
  #2 (permalink)  
Old 04-06-2010, 02:06 AM
dlzc
Guest
 
Posts: n/a
Default Re: Passive FTP mode

Dear Byteguy:

On Apr 5, 2:26*pm, Byteguy <byte...@lanset.com> wrote:
> I have a system I have to get off of FTP.EXE
> because it won't support passive transfer mode.
>
> Written in Clipper 5.2e with Blinker 3.20.
>
> I'm trying out ncFTP command line. *I build the
> "-u username -p password ftp://host/directory/file"
> in a variable and then fire it all off with:
>
> * *SWPRUNCMD("ncftpget " + mftp_script + " > null.txt",0,,)
>
> but, when I check null.txt I find "Program too
> big to fit in memory"
>
> ncFTPget works perfectly from the command line.


.... when there is no DOS executable swallowing most available
memory...

>*I even use memowrit() to drop a copy of
> mftp_script to a text file so I can check I
> built it correctly (I will remove this function
> later for security)
>
> Either I need to get this to run or I need
> another command line utility with passive mode.
>
> Ideas?


Port your program to xHarbour. Then you will have no memory issues.

Recode your program to exit, leaving instructions for a batch file (or
something) to run the command line utility, then re-execute your code
with instructions to "slip" to the point in execution you like.

David A. Smith
Reply With Quote