![]() |
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 Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| display the result of wc -l with words before and after the result | melanie_pfefer | UNIX for Dummies Questions & Answers | 3 | 04-30-2008 07:33 AM |
| How to get a result of a cmd into variable? | manchau | UNIX and Linux Applications | 1 | 03-06-2008 07:36 AM |
| Outputting formatted Result log file from old 30000 lines result log<help required> | vikas.iet | Shell Programming and Scripting | 5 | 12-02-2007 10:43 PM |
| sFTP result | mpang_ | Shell Programming and Scripting | 4 | 08-01-2007 10:06 PM |
| result of find | mpang_ | Shell Programming and Scripting | 1 | 05-01-2006 11:00 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
result of ftp
Hi friends,
I am trying to FTP a file to a different server. My script is given below Code:
command=`ftp -n $FTP_HOST <<END_SCRIPT
user $FTP_USER $FTP_PASSWD
lcd $TEMPFOLDER
cd $FTP_LOCATION
put $FILE
bye
END_SCRIPT`
result="$command"
echo "result is $result"
if [ -z $result ] ; then
echo "successfully FTPed the file"
else
echo "Failed to FTP the report file"
fi
}
And if the server name is wrong the result variable has value not connected. can anyone help me to find out why it is like that.. Last edited by Yogesh Sawant; 05-29-2008 at 08:28 AM.. Reason: added code tags |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|