[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with TCP/IP internetworking feature
From: |
Samson Abramsky |
Subject: |
problem with TCP/IP internetworking feature |
Date: |
Wed, 20 Aug 2003 12:43:47 +0100 (BST) |
I have been having problems getting started with this feature. I am
running gawk version 3.1.3 (which runs fine except for this feature -
including the coprocessing).
I have not succeeded in running the first example script as given on page
12 of `TCP/IP Internetowrking with gawk'.
I have verified that `localhost' is present in /etc/hostsa, and that
`daytime' is present in /etc/services.
I also tried numerous variations, using local machine domain names,
IP addresses, etc.
This was both on a system running GNU/Linux, and on one running SunOS.
Here is the script (which was taken from the manual as mentioned).
BEGIN {
"/inet/tcp/0/localhost/daytime" |& getline
print $0
close("/inet/tcp/0/localhost/daytime")
}
The error message I get is:
>gawk; foo:2 fatal: can't open two way socket
'/inet/tcp/0/localhost/daytime' for input/output (No such file or
directory).
(having run: gawk -f foo)
I realize that this is most likely an configuration issue, but the inet
package
is part of the gawk implementation, and I have followed all the
instructions carefully, so it is quite frustrating that it doesn't work.
Any help you can provide would be much appreciated!
Best wishes,
Samson Abramsky
- problem with TCP/IP internetworking feature,
Samson Abramsky <=