Re: unexpected EOF while looking for matching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thank you for your persistence, which has paid off, and conquered my obtuseness.
So, apache doesn't invoke "sh". Neither does my code, explicitly. But when my script invokes a host command, the interpreter just hands the command to the default execution environment, which in this case is "sh".
I wrote a test command, called "quote", then tried to execute it incorrectly, in a script called "test_shell". The code in test_shell is:
"quote 'stuff"
... so the command passed to "sh" would be quote 'stuff and that generates exactly the error messages that I see. Debugging this will be simple, now I know what I'm looking for; the interpreter can raise an exception whenever a host command returns anything other than a zero return code. If you just know to ask it to do so.
I'm now looking forward with some excitement to the next occurrence of the problem. It's just a shame that they are quite rare.
On 20 February 2012 13:54, Tom Evans
<tevans.uk@xxxxxxxxxxxxxx> wrote:
'll try and make it clearer - Apache *does not* invoke sh, *for any
reason*. If sh is being invoked, your script is doing it. If you see
sh errors in your error log, then your script is invoking sh
incorrectly.
--
Steve Swift
http://www.swiftys.org.uk
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]