talisker123gjs
Technical User
Hi
If I try to ftp an invalid IP address, I get no result (which is obvious) and the command seems to be hanging.
HOW DO I TRAP THIS KIND OF ERROR ?
For eg., I am using FTP in a "here" document within a shell script. If the remote system isn't available or if there is a network problem, how can my script trap such errors?
I am using the ksh on SunOS 5.6.
Thanks
If I try to ftp an invalid IP address, I get no result (which is obvious) and the command seems to be hanging.
HOW DO I TRAP THIS KIND OF ERROR ?
For eg., I am using FTP in a "here" document within a shell script. If the remote system isn't available or if there is a network problem, how can my script trap such errors?
I am using the ksh on SunOS 5.6.
Thanks