Pete (AccuTerm) was able to make it work.

   Hi Nancy -

The Windows command processor does not handle redirection properly. Try explicitly launching the command processor using CMD.EXE with the '/C' option:

cmd = "CMD.EXE /C FTP -s:\\OURSERVER\Flatfile\FTP.EXPORT\ftpscript1.txt > ftp.log" PRINT ESC:STX:'>':CMD:CR:I had to put C:\ in front of the ftp.log and then it worked.

Thanks to everyone for your help - and running from the Server would be best and hopefully we will get there - in the meantime

Woo Hoo !!!

Nancy
[EMAIL PROTECTED]

----- Original Message ----- From: "MAJ Programming" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 08, 2007 6:17 AM
Subject: Re: [U2] FTP


I was focused more on clearing up the accuterm syntax. I do FTP perhaps once
a year so I don't remember it directly.

I use the ESC:STX stuff a whole lot.

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


Mark:

My thoughts on this subject are usually the same...keep it simple.  There
has to be some pretty serious conditions existing before I'd move ftp
services off the server and onto any client, and just because it can is
not
one of them.  :-)

Every O/S we use has an ftp client as part of it (Windows & ..nix).
Networking is a difficult business where all kinds of things go wrong.
Moving a service like ftp off the UniVerse server is just asking for an
additional layer of problems.  I'm late to ftp processing but I'm sure
most
on this list do ftp processing and it would be wise to follow advice given
in this thread...ftp from the UV server.

The script I posted works well and includes sftp processing. I'd be happy
to post more but I'm sure everyone already does this kind of thing.

Bill

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MAJ Programming
Sent: Wednesday, March 07, 2007 6:13 PM
To: [email protected]
Subject: Re: [U2] FTP

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
-------
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