![]() |
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 |
| rlogin inside a c-shell script | sumitgarg | Shell Programming and Scripting | 5 | 02-01-2008 12:27 AM |
| writing Enter key inside in shell script | bishweshwar | Shell Programming and Scripting | 3 | 01-04-2008 12:45 PM |
| How to run an SQL script inside a shell | stevefox | Shell Programming and Scripting | 1 | 06-15-2006 11:11 PM |
| How to run unix commands in a new shell inside a shell script? | hkapil | Shell Programming and Scripting | 2 | 01-04-2006 06:56 AM |
| Using tar inside a shell script | kas7225 | Shell Programming and Scripting | 2 | 05-20-2005 12:06 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
ftp files inside a shell script
I have a shell script where I am trying to ftp some files but I get the error message "EOF unclosed" every time the script reaches the ftp section. Here is how my script is written.
#more code up here rm -f $object >> $LOG_FILE 2>&1 fi #end of if done #end of for loop ################################################# ftp -n -v -i << EOF >> $LOG 2>&1 open $HOST_ADDRESS user $HOST_LOGIN $HOST_PASSWD ascii lcd $DIR cd $FTPDIR mput $REPORT.* close quit EOF ################################################# This same script works if I take the FTP part and put it in a separate script by itself. But I don't like the idea of having a separate script just for FTP and would like to keep all of the code in the same script, if possible. Please help on this issue as I am not sure what is wrong here. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|