![]() |
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 |
| to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's | manas6 | UNIX for Dummies Questions & Answers | 0 | 06-05-2008 06:44 AM |
| cp and rm return non zero value | latitude | High Level Programming | 7 | 08-26-2007 08:04 AM |
| Return Key | chapmana | Shell Programming and Scripting | 2 | 11-29-2006 04:52 AM |
| the return value $? | gusla | Shell Programming and Scripting | 3 | 12-08-2002 08:30 PM |
| Return value | raphael.schwend | Shell Programming and Scripting | 1 | 05-03-2002 02:43 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
FTP return value
Hi guys,
I am having a problem to determine if the FTP request I had was successful or not... Here is what I do: In a shell script I call another shell script to do the FTP like: Code:
#!/bin/ksh echo "Hello..." ... # call do_ftp.sh do_ftp.sh $SERVER $USR $PASS $FILE.... status=$? if [ status -ne 0 ]; then echo "FTP error" else echo "FTP OK" fi Code:
exec 4>&1 ftp -inv >&4 2>&4 |& print -p open $FTPSERVER print -p user $USER $PASSWD print -p lcd $OUTPUTDIR print -p binary print -p put $ZIPFILE print -p quit I've tried using inline redirection or "value=do_ftp.sh ..." and so and so but I am not getting anywhere... I'd appreciate any help... added code tags for readability --oombera Last edited by oombera; 02-20-2004 at 05:25 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|