Operating System - HP-UX
1753435 Members
4586 Online
108794 Solutions
New Discussion юеВ

Re: perl script help needed

 
zxcv
Super Advisor

perl script help needed

Hi ,

 

i have  a perl script which we use for ftp , m not able to update the ftplog contents.

10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: perl script help needed


@zxcv wrote:

Hi ,

 

i have  a perl script which we use for ftp , m not able to update the ftplog contents.



And that tells us nothing.  I assume that you are running the standard HP-UX 'ftpd' daemon. What release of HP-UX?  Do you mean that the 'xferlog' isn't being updated?  If not, do you have 'ftpd' configured with '-i in '/etc/inetd.conf'?  Do you have an 'ftpaccess' file that overrides that?

 

Does this logging failure only occur with your Perl script or does a command line FTP fail to log too?

 

...JRF...

zxcv
Super Advisor

Re: perl script help needed

Hi James ,



m gettng problem via script..

wen m startng the script like ;

nohup /usr/bin/perl -w /tmp/test.pl -p -d 2 &



BEGIN failed--compilation aborted at /tmp/test.pl line 60.
Use of uninitialized value in subroutine entry at /usr/opt/perl5/lib/5.8.8/aix-thread-multi/XSLoader.pm line 94.
Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at /usr/opt/perl5/lib/5.8.8/aix-thread-multi/XSLoader.pm line 94.
Compilation failed in require at /tmp/test.pl line 60.
BEGIN failed--compilation aborted at /tmp/test.pl line 60....
Dennis Handly
Acclaimed Contributor

Re: perl script help needed

>compilation aborted at /tmp/test.pl line 60.

 

It would help if you could show what was on line 60 and print the values of any variables being used there.

zxcv
Super Advisor

Re: perl script help needed

60 use Data::Dumper ; # Used only for debugging statements

vim /usr/opt/perl5/lib/5.8.8/aix-thread-multi/XSLoader.pm
92 # See comment block above
93 push(@DynaLoader::dl_shared_objects, $file); # record files loaded
94 return &$xs(@_);
M not able to attache my perl script here ?? why is it so ..
zxcv
Super Advisor

Re: perl script help needed

Hi

i have found smethng from net ..that usuually its not able to get the hostname....

/usr/opt/perl5/lib/5.8.8/aix-thread-multi/Socket.pm  .........

my hostname is testserver...is it greater than 8 char so itss d probm ????? or smthgnelse..

James R. Ferguson
Acclaimed Contributor

Re: perl script help needed


@zxcv wrote:

Hi

i have found smethng from net ..that usuually its not able to get the hostname....

/usr/opt/perl5/lib/5.8.8/aix-thread-multi/Socket.pm  .........

my hostname is testserver...is it greater than 8 char so itss d probm ????? or smthgnelse..


Hi:

 

So, you're running on AIX not HP-UX.  Yes, I suspect that hostnames longer than the classic 8-character limit are a problem.  Why not test on a host whose name is =< 8 ?

 

Actually *posting* the entire script would be more informative then piece-meal, vague descriptions of behavior and observations :-)

 

Regards!

 

...JRF...

zxcv
Super Advisor

Re: perl script help needed

Hi ,
M not able to attach my perl script here ?? why is it so
Dennis Handly
Acclaimed Contributor

Re: perl script help needed

>M not able to attach my perl script here? why is it so 

 

(It would be helpful if you didn't use texting shortcuts, used spell check and fairly complete sentences.  And proper capitalization would be a plus.  :-)

You can go back and edit your posts.

 

Perhaps you don't have the right suffix, try .txt.

zxcv
Super Advisor

Re: perl script help needed

Hi , let me chk ..