Unix script file creation E-mail error [message #267779] |
Fri, 14 September 2007 17:41 |
aliceg
Messages: 29 Registered: July 2007 Location: Los Angeles
|
Junior Member |
|
|
Below Unix script calls 2 sql scripts to create 2 flat files off of Oracle queries.
When I put the e-mail to send the outcome to addresses, I get this error: execute_pog_ff.sh[17]: syntax error at line 24 : `<<' unmatched.
Enclosed is the Unix script file.
Any idea of what might be wrong?
Thanks so much, --Alice
|
|
|
Re: Unix script file creation E-mail error [message #267780 is a reply to message #267779] |
Fri, 14 September 2007 17:49 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
First this problem has NOTHING to do with Oracle and is a pure shell scripting issue.
What part of "execute_pog_ff.sh[17]: syntax error at line 24 : `<<' unmatched." do you not understand?
The default behavior for some/many/most *nix shells is that when using a "here document" the terminating string must be at the leftmost margin of the line/record ( NOT indented).
HTH & YMMV
[Updated on: Fri, 14 September 2007 17:50] by Moderator Report message to a moderator
|
|
|
|