![]() |
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 |
| proble in running .properties file | sari | Linux | 0 | 04-22-2008 03:25 AM |
| help me in sending parameters from sqlplus script to unix shell script | Hara | Shell Programming and Scripting | 2 | 01-29-2008 03:31 PM |
| Awk array proble!!!Please help | timj123 | Shell Programming and Scripting | 0 | 01-28-2008 09:02 PM |
| Shell Script: want to insert values in database when update script runs | ring | Shell Programming and Scripting | 1 | 10-25-2007 03:06 AM |
| Big (at least to me) sed proble | go4desperado | Shell Programming and Scripting | 1 | 02-04-2007 06:47 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
proble in ftp script
i had written one script
that make connection with remote host get some file and close the connection .. it works fine .. but when i put this scrip in between control structure commands like "if , case " then it give me error like" syntax error at line 26 : `<<' unmatched" please tell me can we use automated ftp script in control structure my script is Code:
Oms_host=$1
oms_login=$2
oms_pass=$3
oms_installation_location=$4
JAR_FILE1=omsconnectors-src.jar
JAR_FILE2=omsconnectors.jar
JAR_FILE3=oms_api.jar
CSV_FILE1=ExternalCreditCheck.csv
CSV_FILE2=GetAddressById.csv
CSV_FILE3=InternalCreditCheck.csv
CSV_FILE4=GetCustomerInfo.csv
echo " INPUT oms host ${Oms_host} oms login ${oms_login} oms pass ${oms_pass}"
echo " oms_installation_location == ${oms_installation_location}"
echo " INPUT oms host ${Oms_host} oms login ${oms_login} oms pass ${oms_pass}"
check=Y
if [[${check}= Y]]
then
ftp -n ${Oms_host} << EOT
user ${oms_login} ${oms_pass}
cd ${oms_installation_location}/omsserver
get apm.xml
cd ..
cd AMSS_Configuration
get ${JAR_FILE1}
get ${JAR_FILE2}
cd weblogic
get ${JAR_FILE3}
bye
EOT
else
echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
fi
Last edited by blowtorch; 08-28-2006 at 03:45 AM.. |
|
||||
|
Thanks blowtorch ,
now its working ... ones again thanks for your reply I have one more related problem. Hope you will help me. Scenario is like this I have one main script, that works fine … but when I copied this automated ftp script code in my main script My main script exited after execution of this ftp code .. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|