![]() |
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 |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get the exit status | yhacks | Shell Programming and Scripting | 1 | 05-19-2008 08:06 AM |
| Exit Status of SFTP | uni1234 | Shell Programming and Scripting | 1 | 10-11-2007 02:03 PM |
| exit status | moxxx68 | Shell Programming and Scripting | 1 | 12-04-2004 07:27 PM |
| Checking the exit status of ftp | psingh | UNIX for Advanced & Expert Users | 1 | 06-04-2002 10:51 PM |
| tar exit status | thorndike | UNIX for Dummies Questions & Answers | 3 | 01-22-2002 04:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Does ftp from unix have an exit status. In the sense after ftp is invoked and if the ftp fails during file transfer does it exit out with a status other than 0. What is do right now is invoke ftp and right it to a log and then grep for 'File Transferred Sucessfully'. Is this the only way to do it or is there a better way of doing this.
Also, I noticed that a couple of time my script did not process the part where it actually ftp's and returned as success. Any explanation as to why this happened. ![]() |
|
||||
|
Hi Oracle8,
Yep, try doing this: Code:
if ftp -n -v IP.ADDRESS << END > ftplogfile.log user USERNAME "PASSWORD" cd location_of_file bin # if binary file get file bye END then echo "Ftp completed successfully." else echo "Ftp failed. Examine log below." cat ftplogfile.log fi Last edited by oombera; 02-20-2004 at 11:48 AM.. |
| Sponsored Links | ||
|
|