My 2 cents on accuterm: This may not clear up the FTP script, but It will set things straight for the ESC:STX sequence.
Accuterm has beaucoups of PC facilities just waiting to run. They are typically preceed by the ESC:STX (27 : 2). The > command means that the Pick session will wait until the DOS session is complete. PRINT ESC:STX:"> SOL.EXE" The < command means that the Pick session will continue while the DOS session remains open. PRINT ESC:STX:"< SOL.EXE" I don't know specifically, But I have had timing concerns with issuing commands to DOS and then expecting to use those results back in Pick. If I write a textfile to a shared file and then execute notepad to play with it, Pick has to wait until notepad is finished. The ESC:STX command may finish promptly but re-reading the shared file textfile may result in beating notepad to the punch and you get the same record. Putting a SLEEP or READ within a LOOP to compare the before and after may be the trick. Mark Johnson ----- Original Message ----- From: "Bob Woodward" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, March 07, 2007 7:00 PM Subject: RE: [U2] FTP > 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/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
