Re: [Perl-unix-users] getprotobyname

2004-09-08 Thread Seemanto Barua
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

Re: [Perl-unix-users] getprotobyname

2004-09-08 Thread $Bill Luebkert
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

Re: [Perl-unix-users] getprotobyname

2004-09-08 Thread Seemanto Barua
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

Re: [Perl-unix-users] getprotobyname

2004-09-08 Thread $Bill Luebkert
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

RE: [Perl-unix-users] getprotobyname

2004-09-08 Thread Chris Botka
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]

Re: [Perl-unix-users] getprotobyname

2004-09-08 Thread Gisle Aas
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 ___

Re: [Perl-unix-users] getprotobyname

2004-09-08 Thread $Bill Luebkert
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/

Re: [Perl-unix-users] getprotobyname

2004-09-08 Thread Jeff D
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