This is a snip from my php handler for a unidata program
$udtCmd="LANG=en_US.UTF-8;export LANG; cd
/usr/ud/accounts/$account;/usr/ud71/bin/udt RUN $BP flyGen $noads $style
$uid $keywords -G";
$result = array();
$i=1;
$done=0;
$time_start = microtime(true);
exec( $udtCmd, &$result);
$time_end = microtime(true);
foreach ( $result as $v )
{
....
Notice i do set an env var in the same command as the udt command and i put
the full path in as well. This works fine.
Rgds
Symeon.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ross Morrissey
Sent: 27 July 2009 21:01
To: U2 Users List
Subject: Re: [U2] Error 4 22 from PHP exec of uv on AIX
Thanks Henry, this sent me down another path of exploration. I ran my PHP
script from the command line (php connect.php) and it got through to uv just
fine - which makes it difficult to debug further. I was able to compare
user and environment variables and there are no smoking guns. If I can't
get this working using PHP as an Apache module, maybe I'll hook it up via
CGI.
Thanks again U2-Users!
On Fri, Jul 24, 2009 at 6:54 PM, Henry Unger <[email protected]> wrote:
> Permissions, perhaps?
>
> Running it using syscalls might provide some clues.
>
>
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users