Hi Nancy, Okay, then we have that in the wrong place. You're running this from AccuTerm, correct? From the command string you have, " PRINT ESC:STX:'<':CMD:CR ". I am assuming you are seeing the responses of the FTP commands. Having no knowledge of AccuTerm at all, it looks like you're sending an escape command of CHAR(2) to AccuTerm, which is taking the text of CMD as keyboard input statements then after the final BYE command, sending a carriage return to return control back to the terminal session. If this is the case then maybe you can create a DOS batch file that is exactly the same as your CMD list of commands. Change your PRINT statement from CMD to whatever you call your batch file with the piping command inside. That way AccuTerm is only interpreting the batch file name and the rest is being done at the OS level, which should then recognize the piping redirection.
Crystal clear as mud? BobW -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nancy Fisher Sent: Wednesday, March 07, 2007 3:04 PM To: [email protected] Subject: Re: [U2] FTP I tried just one '>' and then I tried 2 '>>' and still nada. I tried with spaces around the >> and all run together. I tried it with and without a path (C:). I don't get results but with the addition of > or >> the file doesn't get sent either. thanks, Nancy [EMAIL PROTECTED] ----- Original Message ----- From: "Bob Woodward" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, March 07, 2007 2:24 PM Subject: RE: [U2] FTP > Hi Nancy, > > I've done a pretty fair bit of work with DOS command scripts of late. > You might be looking for the ">>" function added to the end of your CMD > command. Something like this: > > CMD = "FTP -s:\\OURSERVER1\Flatfile\FTP.EXPORT\ftpscript1.txt >> > ftp.log" > > I'd have to do some playing around but I think that might be what you're > looking for. This should result in the displayed information of your > FTP process ends up in the "ftp.log" which is a text file in your > current directory. > > > BobW > > -----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/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
