Hi Gisle,
I tried truss. The manual says getprotobyname should search in the
file /etc/protocols. The following line of output from truss indicates
its looking for the file through NIS ???
open("/etc/nsswitch.conf", O_RDONLY)= 3
On 08 Sep 2004 06:13:42 -0700, Gisle Aas <[EMAIL PROTE
Seemanto Barua wrote:
> Hi Gisle,
>
> I tried truss. The manual says getprotobyname should search in the
> file /etc/protocols. The following line of output from truss indicates
> its looking for the file through NIS ???
>
> open("/etc/nsswitch.conf", O_RDONLY)= 3
Most NIX's give yo
Hi Gisle,
I tried truss. The manual says getprotobyname should search in the
file /etc/protocols. The following line of output from truss indicates
its looking for the file through NIS ???
open("/etc/nsswitch.conf", O_RDONLY)= 3
On 08 Sep 2004 06:13:42 -0700, Gisle Aas <[EMAIL PROTE
Chris Botka wrote:
> The error is a generic error for a failed BIND. So smeting might not be
> congigured correctly. I guess it could also be a generic error message for
> other things too though. But I know it's one from BIND under solaris.
Yes, EBADF it's used in dozens of system calls and B
The error is a generic error for a failed BIND. So smeting might not be
congigured correctly. I guess it could also be a generic error message for
other things too though. But I know it's one from BIND under solaris.
CB
-Original Message-
From: Seemanto Barua [mailto:[EMAIL PROTECTED]
Jeff D <[EMAIL PROTECTED]> writes:
> Have you tried your code with other comm protocols?
> Ie substitute the udp with tcp?
I suggest you try to run your program with 'truss'. That should show
you what system calls fail. The Linux program 'strace' is similar.
Regards,
Gisle
___
Seemanto Barua wrote:
> Hi All,
>
> I have perl version 5.00503 installed on sunos machine. Do i need to
> add aditional module to use the function getprotobyname ?
>
> #!/usr/bin/env perl
Are you sure that shebang line is right ?
#!/usr/bin/perl
or
#!/usr/local/bin/
According to O'Reilly's Programming Perl book,
getprotobyname is a perl built in function, so no
additional modules are required.
I've tried your code on both SunOS 5.6 and SunOS5.8
with perl 5.00503 and receive no errors.
Have you tried your code with other comm protocols?
Ie substitute the udp