Menu

#29 more inet problems

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

Im testing on Linux and Tru64 the use of |&
and somehow it works on the socket layer, but the
output towrads a |& does not work with a print?

Do you know if /inet/tcp/... is supported by awka? from
gawk 3.1?
If yes will a print "blabal" |& mysocket work ??

It is compiled without problems and it works under gawk
-f file.awk
but compiled with awka (latest version) i dont get
output...

below a source example.. perhpas you see the issue?

BEGIN {
slurpd = "/inet/tcp/2222/localhost/0"
print strftime() " - Daemon started"

while ((slurpd |& getline ) > 0 )
print "Slurp..." |&
slurpd

close (slurpd)
print strftime() " - Daemon stoped"
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB