Page 1 of 1
Oracle Query
Posted: Fri Oct 16, 2015 7:33 am
by jcwuerfl
Getting this output on an Oracle Query, any ideas?
Code: Select all
(No output on stdout) stderr: /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
Re: Oracle Query
Posted: Fri Oct 16, 2015 8:24 am
by mp4783
One possible explanation is that the file, assuming it is a text based script of some sort, is encoded in MS-DOS format. If you execute "cat -vet check_oracle" (or whatever the plugin is called) and you see a "^M" at the end of each line, then this could be the problem.
Assuming your plugin is called check_oracle, you can fix it (or at least try) by executing the following:
Code: Select all
cp -p check_oracle check_oracle.org
dos2unix check_oracle
Now if you execute "cat -vet check_oracle", each line should end with a "$".
Re: Oracle Query
Posted: Fri Oct 16, 2015 8:26 am
by jcwuerfl
I think there are some issues with the 12 Oracle Instant client. Went back to v11 for the client and that worked fine.
Thanks
Re: Oracle Query
Posted: Fri Oct 16, 2015 1:53 pm
by tgriep
Thanks for posting the resolution. Shall we close the post?