AIX 4.3 Korn shell. I want to trap ftp errors (e.g. not connected, invalid user name etc) in the following script:
ftp -in <<finished
open REMOTENAME
user USERNAME PASSWORD
cd USERDIRECTORY
put USERFILE
quit
finished
Using the trap command, for all interrupts, doesn't seem to have any affect.
ftp -in <<finished
open REMOTENAME
user USERNAME PASSWORD
cd USERDIRECTORY
put USERFILE
quit
finished
Using the trap command, for all interrupts, doesn't seem to have any affect.