What error did you get? What have you tried to debug the problem?
Pro tip: use warnings; right below use strict;, see perllexwarn for more information.
| [reply] [d/l] [select] |
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.
| [reply] |
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. | [reply] |
Hi guys m not able to write into ftp log file using this script...given below;
So you wrote this program?
| [reply] |
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 ??
| [reply] |
| [reply] |