1833779 Members
2601 Online
110063 Solutions
New Discussion

ftp error log

 
SOLVED
Go to solution
Ed Hon
Regular Advisor

ftp error log

We have a cron script that does ftp. Does ftp write to a log, so we can verify that the transmissions took place as planned or else it got interrupted?
2 REPLIES 2
harry d brown jr
Honored Contributor

Re: ftp error log

Either start the ftpd daemon with the "-L" (uppercase L) option, or look into using perl:

Clay has a good example here:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6eb5a1abbac8d5118ff10090279cd0f9,00.html

live free or die
harry
Live Free or Die
James R. Ferguson
Acclaimed Contributor
Solution

Re: ftp error log

Hi Ed:

Use the verbose option and redirect your ftp dialog to a logfile. You can parse the file for appropriate replies to the various events. Use the 3-digit codes as opposed to the textual string associated with the reply. The text will vary implementation to implementation. See 'man 1M ftpd' for more details.

Regards!

...JRF...