Hi Nancy,

Instead of using Accuterm to ftp from your client pc, I suggest ftp'ing
directly from the Universe server.

One way would be to build and execute a DOS batch file that includes the
windows FTP command, captures the result, and then checks for success in
some way.

However, there is an alternate {free} FTP client (originally developed
for Unix but now also available for Windows) that works great: ncftp and
it's command-line variants ncftpput, ncftpget, and ncftpls; available
from the ncftp.com web site.

I use ncftp (specifically ncftpput and ncftpget) a lot and highly
recommend it. It is command-line oriented, thus is very easy to set-up
and execute from a Universe basic program. And it is rock-solid
reliable. The only drawback is that is does not handle secure ftp (ssl
or sftp) type transmissions. But if you don't need that, or you encrypt
your files before transmitting as I typically do, then ncftpput and
ncftpget are by far the easiest way to send and receive files via ftp
from inside of Universe.

/Scott Ballinger
Pareto Corporation
Edmonds WA USA
206 713 6006

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nancy Fisher
Sent: Wednesday, March 07, 2007 1:55 PM
To: [email protected]
Subject: [U2] FTP

I'm using AccuTerm DOSSVC to place a file on  remote FTP site.  It
always shows up exactly like I want.
But I need to capture the results so I can automate it (just in case it
doesn't go).

The Basic program (AccuTerm) DOSSVC uses this syntax:
   EQU ESC TO CHAR(27)
   EQU STX TO CHAR(2)
   EQU CR TO CHAR(13)

  PRINT ESC:STX:'<':CMD:CR

The command is:  CMD = "FTP
-s:\\OURSERVER1\Flatfile\FTP.EXPORT\ftpscript1.txt"

and the ftpscript1.txt is:

    open ftp.somesite.com
    ourusername
    ourpassword
    ascii
    cd /
    send \\OURSERVER1\Flatfile\OURCLIENT\FILETOSEND.EDI
    bye

I don't know if I need to know DOS/FTP or BASIC or AccuTerm syntax to
return the result of the transfer absolutely ANYWHERE (variable or
file).

I am practically clueless on DOS/FTP and have struggled to get this far.
Since I can send the file I am very
frustrated at not being able to manage the result.

I have tried the AccuTerm forum...and no luck so far.

We are on Windows/UniVerse.

thanks,
Nancy
[EMAIL PROTECTED]
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to