Hi,
I'm encountering a problem with the parsing of an exec string in a foreach loop, nested within an if loop. The string executes correctly outside of the foreach loop, but within the foreach returns error code 127.
The exec string within the foreach loop seems to parse correctly up until the arguments for my shell script. There, it sees 0 or 1 arguments and triggers the "Usage: " message.
The exec string invokes an interactive shell and looks like this:
exec("bin/putenv SOME_STRING /bin/bash -c \"bin/suexec $login \\$SOME_STRING my/shell/script $arg1 $arg2 $arg3 \" <<:eof\n".$somestring."\n:eof\n", $output, $return);
The foreach loop expands correctly and is working correctly w/ plain variable and array assignments.
Any help would be greatly appreciated!
Cheers,
Julie