Menu

#24 Inet responses not working

open
nobody
None
5
2003-10-10
2003-10-10
No

Hi,

Thanks for this cool translator. The standard AWK
features seem to work fine after compilation. For your
info: I have compiled AWKA 0.7.5 on OpenBSD 3.2
successfully. I also tested AWKA on Slackware 8.1 and
Compaq Tru64 Unix 4.0f, all seems to work fine except
for one thing.

When I use networking (with Gawk 3.1.1) something
strange happens. The source is being generated, and I
can compile it into a binary successfully. But when I
run this binary, the network pipe seems not to be able
to send information back!!

For example, if I setup a network connection to an SMTP
server, the binary can send data to that pipe; the mail
is generated and sent properly. However, the mail
responses from the SMTP server are not grabbed.

So this works:
------------------------------------------
print "EHLO localhost" |& SmtpService
------------------------------------------

But grabbing the respone does not work:
------------------------------------------
SmtpService |& getline
print $0
------------------------------------------

The "print $0" just does not print any result. Neither
on OpenBSD, neither on Slackware.

Do you have any idea what is happening?

Thank you,

Peter.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB