Operating System - HP-UX
1828182 Members
2438 Online
109975 Solutions
New Discussion

logging server and client messages in one log file for ftp

 
Deepak_5
Advisor

logging server and client messages in one log file for ftp

Hi,

Is there a way, I can log both server
and client messages on the same log file.
e.g.
ftp 204.165.187.167 << end >>log
prompt
put .profile
quit
end

I do not get this message in the log
"226 Transfer finished successfully."
I have set .netrc for automatic file transfer.
How do I get it?

Thanks and Regards
Deepak

3 REPLIES 3
Vincenzo Restuccia
Honored Contributor

Re: logging server and client messages in one log file for ftp

#script -a /tmp/log
ftp 204.165.187.167 << end
prompt
put .profile
quit
end
ctrl-D

James R. Ferguson
Acclaimed Contributor

Re: logging server and client messages in one log file for ftp

Hi Deepak:

Add the '-v' option to the 'ftp'.

...JRF...
Deepak_5
Advisor

Re: logging server and client messages in one log file for ftp

Thanks , that 's great.
ftp -v works and man page also says that.

Regards
Deepak