![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exception Handling | bertpereira | Shell Programming and Scripting | 5 | 01-14-2009 09:28 PM |
| Error Handling in Korn Shell scripts | bhgopi | UNIX for Advanced & Expert Users | 4 | 09-06-2005 06:44 PM |
| exception handling | RichardS | UNIX for Advanced & Expert Users | 1 | 06-16-2004 05:29 PM |
| Parameter handling | AkumaTay | UNIX for Dummies Questions & Answers | 1 | 05-18-2002 02:09 PM |
| Date Handling | AkumaTay | UNIX for Dummies Questions & Answers | 1 | 08-16-2001 02:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Handling ftp error
I have a script which connects to remote server and ftp the files
It works fine, however if there is any failure in ftp connection can it be handled??? Code:
ftp log ftp session start time is: Thu Jun 19 00:00:02 BST 2008 Not connected. Not connected. Interactive mode off. Not connected. Not connected. Not connected. success and proceed ftp session end time is: Thu Jun 19 00:01:18 BST 2008 ftp -n $HOST > /tmp/ftp.worked 2> /tmp/ftp.failed <<END_SCRIPT <code> END_SCRIPT EXITSTATUS=$? if [ $EXITSTATUS != "0" ] then # handle the error... fi Can someone please help me? Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|