Unix script file creation E-mail error [message #267779] |
Fri, 14 September 2007 17:41 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
aliceg
Messages: 29 Registered: July 2007 Location: Los Angeles
|
Junior Member |
![aliceghe](/forum/theme/orafaq/images/yahoo.png)
|
|
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 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](http://www.orafaq.com/forum/images/custom_avatars/136107.jpg) |
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
|
|
|
|