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
print("Name " . (getprotobyname('udp'))[2] . "\n" );
The above code when run gives the error:
"Error Bad file num
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
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/
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
___
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]
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
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
DBD::Oracle::db selectrow_hashref failed: ORA-01406: fetched column value was truncated (DBD: ORA-01406 error on field 1 of 1, ora_type 24, DBI attribute LongTruncOk not set and/or LongReadLen too small)Saúl Lucena
Web Developer
Telf: 058-0414-3498951
MSN Amor Busca tu ½ naranja
__
All,
I'm trying to understand the Apache::DBI mechanism
which caches and returns $dbh handles. My concern is
that Apache DBI uses the connection options, like
AutoCommit=>1 as part of it's caching 'key' mechanism.
Thus would I be right in thinking that if I create a
$dbh with AutoCommit=>1, this
11 matches
Mail list logo