![]() |
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 |
| Check FTP Status | april | Shell Programming and Scripting | 2 | 05-06-2009 08:04 AM |
| sftp status check | fisa | HP-UX | 4 | 02-27-2008 07:18 PM |
| Script to check status of a PID | zeekblack | Shell Programming and Scripting | 14 | 10-03-2006 03:09 PM |
| check the status and send an email with status | isingh786 | Shell Programming and Scripting | 3 | 12-29-2005 07:22 PM |
| Status check of Automated FTP | anijog | Shell Programming and Scripting | 5 | 03-04-2004 02:30 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Ftp Status Check
Hi,
I'm using the below script to ftp the file passed as 3rd argument. I'm passing the source and destination directory as 1st and 2nd argument. This script does the ftp successfully. The script displays the echo before ftp stmt and does the ftp and does not display the stmts after that check the status of ftp... Am I doing something wrong here? echo "B4 ftp: `date '+%d/%m/%Y %T'`" |tee -a $LOGFILE 2>&1 ftp -v -n -i ${IP_ADDRESS} <<==eoftp== >> $LOGFILE 2>&1 user ${USERID} ${PASSWORD} lcd ${1} cd ${2} put ${3} bye ==eoftp== ret_val=$? echo "After ftp: `date '+%d/%m/%Y %T'`" |tee -a $LOGFILE 2>&1 echo "ret_val..= ${ret_val}" |tee -a $LOGFILE 2>&1 if [[ ${ret_val} -ne 0 ]] then echo "FTP failed..." |tee -a $LOGFILE 2>&1 else echo "FTP Successful..." | tee -a $LOGFILE 2>&1 fi Thanks in advance, AC |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|