![]() |
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 |
| cp script error, pls help in debugging!!!! | wrapster | UNIX for Advanced & Expert Users | 1 | 05-24-2008 08:12 AM |
| which one method is best for debugging the shell script? | psiva_arul | UNIX for Advanced & Expert Users | 2 | 05-20-2008 06:33 AM |
| debugging a script?? | wrapster | Shell Programming and Scripting | 2 | 03-25-2008 11:07 AM |
| Nee help debugging script..plz | gzs553 | Shell Programming and Scripting | 8 | 11-24-2006 11:21 AM |
| HP-UX Debugging Shell script | shihabvk | Shell Programming and Scripting | 1 | 04-24-2006 09:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
FTP script debugging
Hello all,
I am trying to run a script and have not had much success running it...ne help debugging it will be appreciated..The ftp script alone works but not within the while loop. below is the script Code:
#!/usr/bin/ksh
destination_server=servename
destination_user_id=un
destination_password=pw
myfile=/dir1/xxx.dat
while true
do
if [[ -a $myfile ]]; then
echo "$myfile exists!"
ftp -v -n $destination_server <<END
user $destination_user_id $destination_password
cd dir3
put $myfile
END
echo 'FTP Complete'
else
sleep 600
fi
done
0403-057 Syntax error at line 12 : `<' is not matched. |
|
||||
|
Okay works now:
For others who are looking for this-- 0403-057 Syntax error at line nn : `<' is not matched. This is returned when using <<EOF, << EOF, <<-EOF, <<! etc. and all of the permutations of syntax that preceed/follow. If you are also finding this is a problem, I have managed to get around this by wrapping the sql in a process to returning a value e.g. ORA_RC=`$ORACLE_HOME/bin/sqlplus /nolog <<EOF connect /as sysdba ................ EOF` |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|