BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

NMFTP - How do you get multiple replies?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Steve Swett
Guest





PostPosted: Fri Jan 28, 2005 1:51 pm    Post subject: NMFTP - How do you get multiple replies? Reply with quote



When I use NMFTP's doCommand to process a command on a remote host, and
there is a problem running the command, the remote host actually returns two
responses. How can I fetch both responses? I want to log them after I get
them.

For example, here is the FTP command I send (to an iSeries host):

quote rcmd rstlib savlib(xxinstal) dev(*savf) savf(pkgftp/xxinstal)

Here are the two responses the remote host returns:

550-Error occurred on command rstlib savlib(xxinstal) dev(*savf)
savf(pkgftp/xxinstal).

550 File XXINSTAL in library PKGFTP not found..

Thus far, I've only been able to get the first message, but, as you can see,
the second message is the more helpful one.

I'm using Delphi 5.


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jan 28, 2005 8:00 pm    Post subject: Re: NMFTP - How do you get multiple replies? Reply with quote




"Steve Swett" <sswett (AT) timptech (DOT) com> wrote


Quote:
Here are the two responses the remote host returns:

Those are not two separate responses. They are part of a single multi-line
response.

Quote:
Thus far, I've only been able to get the first message, but,
as you can see, the second message is the more helpful one.

You did not show how you are retreiving the responses to begin with. Please
show your code.


Gambit



Back to top
Loren Pechtel
Guest





PostPosted: Fri Jan 28, 2005 8:15 pm    Post subject: Re: NMFTP - How do you get multiple replies? Reply with quote



On Fri, 28 Jan 2005 08:51:12 -0500, "Steve Swett"
<sswett (AT) timptech (DOT) com> wrote:

Quote:
When I use NMFTP's doCommand to process a command on a remote host, and
there is a problem running the command, the remote host actually returns two
responses. How can I fetch both responses? I want to log them after I get
them.

Your problem is simple. NM.

The NetMasters components are garbage.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.