Is the '>' after the 'ftpscript1.txt' on your sample part of the syntax?  I

thanks,
Nancy

----- Original Message ----- From: "Bill Haskett" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 07, 2007 2:08 PM
Subject: RE: [U2] FTP


Nancy:

If I understand you correctly you're using your "client" PC to ftp the file.
I believe you can direct the ftp output like:

CMD = "FTP -s:\\OURSERVER1\Flatfile\FTP.EXPORT\ftpscript1.txt >
C:\FtpTransfer.txt"

I do this in backup scripts on various servers that email the results to me.
So, theoretically, you could set up the script on the Windows server (if
you're using Windows), or on a Linux server, to do the same thing without
using AccuTerm.

Bill

-----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/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to