Guys,
I am writing a ftp script. Sometimes it happens that my ftp
session times out showing error on the terminal.
"Connection timed out".
My problem is that I am not able to capture this error message in the log file.
Even though I use following construct, the (error) message
is not getting captured in log.
Could you please let me know how to capture this message
in log so that I can grep it and report error though my script?
ftp -ivn xxx.xxx.xxx.xx <! >> $LOG
user xyz xyzpass
cd DIR
mget *.txt
bye
!
TIA,
bharix.
I am writing a ftp script. Sometimes it happens that my ftp
session times out showing error on the terminal.
"Connection timed out".
My problem is that I am not able to capture this error message in the log file.
Even though I use following construct, the (error) message
is not getting captured in log.
Could you please let me know how to capture this message
in log so that I can grep it and report error though my script?
ftp -ivn xxx.xxx.xxx.xx <! >> $LOG
user xyz xyzpass
cd DIR
mget *.txt
bye
!
TIA,
bharix.