OnPromptReceivedWodtelnetdlx1() is never fired (General questions)
by mk_saiprasad, Thursday, January 05, 2006, 17:07 (6896 days ago)
HI,
I just downloaded the WODTELNETDLX & im using with VC++ Activex project.
in this Im able to connct to the host. When my host is prompting me for login:, im not getting any GEtprompt() text. This
OnPromptReceived()is not getting called.can you please help me in this regard.
thanking you,
regards & best wishes,
Sai
Re: OnPromptReceivedWodtelnetdlx1() is never fired
by wodSupport, Thursday, January 05, 2006, 20:10 (6896 days ago) @ mk_saiprasad
Sai,
this is not the prompt you think it is. You must use Prompt property and define what the expected prompt is - because wodTelnetDLX cannot know that. We refer here to command prompt shown when remote side is ready to accept commands, not the login prompt (although you could set Prompt property to expect the login).
I suggest you check out our helpfile, you will see some regular expression value that should cover most command prompts.
Also, if you fill out Login and Password properties, wodTelnetDLX will try to authenticate itself, so maybe your problem is already solved.
Re: OnPromptReceivedWodtelnetdlx1() is never fired
by mk_saiprasad, Thursday, January 05, 2006, 20:36 (6896 days ago) @ wodSupport
HI,
thank you for your reply.
Some how the WODTELNETDLX is not much simple with VC++ ActiveX compared to yours in VB.
I tried with VC++, where I need to Wait for the LOGIN: prompt to come & then i need to send my login name & so on. this does nt work out for me in VC++. I didnt understand the VARIANT parameter which i need to pass for SEND and for others too.
SO Right now im working with VB. its goign on good. I need to just refine my statements so that everything goes well.
I have a quick quextions here for you:
1) will the ReceiveFile function gets me any number of files at a time or single file at a time. (can i get *.* files using receivefile)
2) in the same wasy for Sendfile funtions too. Can I send *.* files using this sendfile.
3) some times my login name is beinf passed before my login prompt has come down. which causes me a invalid login. this occurs only some times. I had set Telnet1.Prompt = login: before Telnet1.Connect.
& then I will wait in Private Sub Telnet1_PromptReceived()for the prompt to come. this works fine except some times. So i couldnt understand why its acting like this.
Im doing the same kind of program which already the previous members in this forum are developed for a US GOVT server. My program is same as like the member kirti_masrani (Sendfile not working - Topic) .
please do let me know the answers for above questions.
4)Is there a way Where I can check for 2 prompts at a time. at one place of my program there is a chance of getting 2 prompts. So How can i check for either of them.
I may be asked like:
Do you want to receive files? Y/[N]:
or
Do you want to send a file? Y/[N]:
is this correct:
Telnet1.Prompt = regex:[Do you want to receive files? Y/[N]:]|[Do you want to send a file? Y/[N]:]$
I would Appreciate your responce for my first 1,2,4 questions. As they are very important for my part of job.
thanking you,
regards & best wishes,
Sai
Re: OnPromptReceivedWodtelnetdlx1() is never fired
by wodSupport, Friday, January 06, 2006, 14:31 (6895 days ago) @ mk_saiprasad
Sai,
1) will the ReceiveFile function gets me any number of files at a time or single file at a time. (can i get *.* files using receivefile)
I think you cannot, but I am not 100 sure. This also depends on the server side of ZModem protocol. You will have to try this by yourself.
2) in the same wasy for Sendfile funtions too. Can I send *.* files using this sendfile.
No, you can't unfortunatelly. You must call SendFile more than once, once for each file
3) some times my login name is beinf passed before my login prompt has come down. which causes me a invalid login. this occurs only some times. I had set Telnet1.Prompt = login: before Telnet1.Connect.
& then I will wait in Private Sub Telnet1_PromptReceived()for the prompt to come. this works fine except some times. So i couldnt understand why its acting like this.
I can't give you answer to this. I can just ask: why didn't you set Login and Password properties so wodTelnetDLX authenticates automatically?
4)Is there a way Where I can check for 2 prompts at a time. at one place of my program there is a chance of getting 2 prompts. So How can i check for either of them.
I may be asked like:
Do you want to receive files? Y/[N]:
or
Do you want to send a file? Y/[N]:is this correct:
Telnet1.Prompt = regex:[Do you want to receive files? Y/[N]:]|[Do you want to send a file? Y/[N]:]$
I'm not expert for regular expressions, so I can't tell you if above regex is ok - you have to try this by yourself. I can only answer that you can't have multiple prompts defined (except if you use regex like above).
Perhaps you could wait for Do you want to and then call Receive to see what's remote system actually asking you? Wouldn't that be a better choice?
Hope I helped.
Re: OnPromptReceivedWodtelnetdlx1() is never fired
by mk_saiprasad, Friday, January 06, 2006, 18:56 (6895 days ago) @ wodSupport
thanks for the reply.
do let you know if those works
Sai