teja402000 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: perl script not writing to mentioned ftplog
by moritz (Cardinal) on Aug 24, 2011 at 09:41 UTC
Re: perl script not writing to mentioned ftplog
by roboticus (Chancellor) on Aug 24, 2011 at 10:02 UTC

    teja402000:

    Try running it with the debugger and walk your way through it. You'll get a better feel for what it's doing and how it's supposed to work as you step through the program. When you encounter something that surprises you, read the documentation on the relevent operators and/or functions and you'll learn perl as you find the problem.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Re: perl script not writing to mentioned ftplog
by cdarke (Prior) on Aug 24, 2011 at 11:07 UTC
    m not able to write into ftp log file using this script

    That's because, unless I missed something (it is a long program) then that's because the program is only reading the file, it does not appear to be designed to write to it.

    It appears that the program is attempting to read a log file created by another program, which is a daemon. I think you are saying that the format has changed between operating systems. No surprise there. You need to get the specification of the new log file format (presumably from your supplier) and rewrite the program to conform to that.
Re: perl script not writing to mentioned ftplog
by Anonymous Monk on Aug 24, 2011 at 09:59 UTC

    Hi guys m not able to write into ftp log file using this script...given below;

    So you wrote this program?

      Hi , I haven't written this program. infact am new to perl , and we are migrating to aix from hpux. Since this script was primarily written for hpux which has a default ftp log /var/adm/syslog/xferlog whereas aix does not have any default ftplog file, so we have edited the script by mentioning /var/adm/syslog/ftp.log which contains entry format as shown below; Aug 24 15:18:48 testserver daemon:info ftpd549252: FTP LOGIN FROM 10.1.5.31, root Aug 24 15:19:26 testserver daemon:info ftpd549252: FTPD: EXPORT file local ftpuploads.pl Which clear;y is different from the one mentioned in perl script..so what to do now ??

        Which clear;y is different from the one mentioned in perl script..so what to do now ??

        You contact support