chrisvmarle
08-14-2002, 05:34 PM
I'm trying something really difficult (I guess).
What I want to do:
I'm creating two scripts; reciever.cgi and caller.cgi the reciever.cgi will be running on my server, lets say 127.0.0.1 on port 1234.
Now, when I run caller.cgi I want this one to connect to reciever.cgi, tell the local version, ask what the newest version is and close the connection.
What I got:
Reciever.cgi is working pretty well, if I connect to it using SecureCRT (http://www.vandyke.com/download/securecrt/index.html) (a Telnet and others program) it all works fine:
(* (red)=reciever.cgi and - (green)=Me (SecureCRT (http://www.vandyke.com/download/securecrt/index.html))
* Hello 127.0.0.1:1579
- version: 1.2.3.4
* you are running version 1.2.3.4
- version?
* version=2.0
- quit
* Bye
and the output in the Commandprompt (WinXP) in wich reciever.cgi is running tells me this:
listening at port 1234
127.0.0.1:1588 connected
Current user(s) online: 1
version 1,234 (1.2.3.4) found on 127.0.0.1:1588
127.0.0.1:1588 disconnected
Current user(s) online: 0
The problem:
Everything seems to work fine, but caller.cgi hasn't been used ;)
As soon as this script comes into play it all goes wrong:
Output of caller.cgi:
Hello 127.0.0.1:1589
you are running version 1.2.3.4
version?
Output of reciever.cgi using caller.cgi:
127.0.0.1:1589 connected
Current user(s) online: 1
version 1,234
version?
qui <1.2.3.4
version?
qui> found on 127.0.0.1:1589
Conclusion:
It looks like reciever.cgi doesn't know when caller.cgi ends a line (where it does using SecureCRT (http://www.vandyke.com/download/securecrt/index.html))
Question:
Is there anyone who can fix this problem and make these scripts work? Or at least give me a hint?
I hope I didn't frighten you with all this text.
Thank you so much!
Mzzl, Chris
P.S. I got a zip-file attached (talking.zip) with the two files
What I want to do:
I'm creating two scripts; reciever.cgi and caller.cgi the reciever.cgi will be running on my server, lets say 127.0.0.1 on port 1234.
Now, when I run caller.cgi I want this one to connect to reciever.cgi, tell the local version, ask what the newest version is and close the connection.
What I got:
Reciever.cgi is working pretty well, if I connect to it using SecureCRT (http://www.vandyke.com/download/securecrt/index.html) (a Telnet and others program) it all works fine:
(* (red)=reciever.cgi and - (green)=Me (SecureCRT (http://www.vandyke.com/download/securecrt/index.html))
* Hello 127.0.0.1:1579
- version: 1.2.3.4
* you are running version 1.2.3.4
- version?
* version=2.0
- quit
* Bye
and the output in the Commandprompt (WinXP) in wich reciever.cgi is running tells me this:
listening at port 1234
127.0.0.1:1588 connected
Current user(s) online: 1
version 1,234 (1.2.3.4) found on 127.0.0.1:1588
127.0.0.1:1588 disconnected
Current user(s) online: 0
The problem:
Everything seems to work fine, but caller.cgi hasn't been used ;)
As soon as this script comes into play it all goes wrong:
Output of caller.cgi:
Hello 127.0.0.1:1589
you are running version 1.2.3.4
version?
Output of reciever.cgi using caller.cgi:
127.0.0.1:1589 connected
Current user(s) online: 1
version 1,234
version?
qui <1.2.3.4
version?
qui> found on 127.0.0.1:1589
Conclusion:
It looks like reciever.cgi doesn't know when caller.cgi ends a line (where it does using SecureCRT (http://www.vandyke.com/download/securecrt/index.html))
Question:
Is there anyone who can fix this problem and make these scripts work? Or at least give me a hint?
I hope I didn't frighten you with all this text.
Thank you so much!
Mzzl, Chris
P.S. I got a zip-file attached (talking.zip) with the two files