Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-07 Thread John Thompson
That is pretty much dead on. Some things to note: I decided not to go through the headache of compiling php and apache myself on AIX. There are some wonderful folks at a community college that created packages for smit. http://pware.hvcc.edu/ I typed up everything I did

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread Kevin King
When John and I were working on this we noticed that the LDR_CNTRL environment variable wasn't set at all on a normal telnet login. When we DID set it manually on the telnet session, Universe wouldn't start with the 4 22 message. So the simplest version the script was basically like this (and for

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread fft2001
here. -Original Message- From: John Thompson To: U2 Users List Sent: Fri, May 6, 2011 11:46 am Subject: Re: [U2] Error 4 22 from PHP exec of uv on AIX Thanks for all of your replies. Thanks to Bob Woodward for the shell environment idea. Thanks to Kevin King for his help. Apache sets

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread Symeon Breen
Subject: [U2] Error 4 22 from PHP exec of uv on AIX I thought I would resurrect an old issue I found on the mailing list... As I am not a mailing list junky (google and web forums have spoiled me), I'm not entirely sure how to reply directly to the old post... Original Post

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread John Thompson
John Thompson > > Sent: Friday, May 06, 2011 2:46 PM > > To: U2 Users List > > Subject: Re: [U2] Error 4 22 from PHP exec of uv on AIX > > > > Thanks for all of your replies. > > Thanks to Bob Woodward for the shell environment idea. > > Thanks to Kevin King

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread Glen Batchelor
m: u2-users-boun...@listserver.u2ug.org [mailto:u2-users- > boun...@listserver.u2ug.org] On Behalf Of John Thompson > Sent: Friday, May 06, 2011 2:46 PM > To: U2 Users List > Subject: Re: [U2] Error 4 22 from PHP exec of uv on AIX > > Thanks for all of your replies. > Thanks to Bob Wo

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread John Thompson
11:57 AM > > To: u2-users@listserver.u2ug.org > > Subject: [U2] Error 4 22 from PHP exec of uv on AIX > > > > I thought I would resurrect an old issue I found on the mailing list... > > > > As I am not a mailing list junky (google and web forums have spoile

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread George Gallen
org] On Behalf Of John Thompson > Sent: Friday, May 06, 2011 11:57 AM > To: u2-users@listserver.u2ug.org > Subject: [U2] Error 4 22 from PHP exec of uv on AIX > > I thought I would resurrect an old issue I found on the mailing list... > > As I am not a mailing list junky (goog

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread Rex Gozar
As a workaround, you could try u2pipe: http://www.pickwiki.com/cgi-bin/wiki.pl?U2pipe You wouldn't need to install it as a inet service, just use it as a pipe. For example: echo "display 42"|/usr/local/bin/u2pipe (or wherever you install it) To configure u2pipe, you edit /etc/u2pipe.ini to ent

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread Bob Woodward
server.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Thompson Sent: Friday, May 06, 2011 9:42 AM To: U2 Users List Subject: Re: [U2] Error 4 22 from PHP exec of uv on AIX Yep, the same behavior still happens. The issue is: On AIX 5.3 (Technology Level 9) You can do the fo

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread John Thompson
Yep, the same behavior still happens. The issue is: On AIX 5.3 (Technology Level 9) You can do the following: -Call Universe from a php script from a shell. So if I do: php -f scriptname.php The php script, is changing the directory and firing up universe. Everything works fine from the shell.

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread Rex Gozar
Have you tried "&&" instead of ";" to separate the cd and uv commands? rex On Fri, May 6, 2011 at 11:56 AM, John Thompson wrote: > I thought I would resurrect an old issue I found on the mailing list... > > As I am not a mailing list junky (google and web forums have spoiled me), > I'm not entir

[U2] Error 4 22 from PHP exec of uv on AIX

2011-05-06 Thread John Thompson
I thought I would resurrect an old issue I found on the mailing list... As I am not a mailing list junky (google and web forums have spoiled me), I'm not entirely sure how to reply directly to the old post... Original Post From: Ross Morrissey Fri, 24 Jul 2009 14:11:56 -0700 Th

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2009-07-28 Thread Ross Morrissey
Thanks Symeon, that looks very similar to what I'm doing - and what works flawlessly on Linux/Apache, Windows/Apache, and Windows/IIS!!! The darn thing just won't work on AIX. On Tue, Jul 28, 2009 at 2:07 AM, Symeon Breen wrote: > This is a snip from my php handler for a unidata program > > $ud

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2009-07-28 Thread Symeon Breen
:u2-users-boun...@listserver.u2ug.org] 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 jus

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2009-07-27 Thread Jeff Powell
What account is Apache running as? Perhaps Apache does not have adequate permissions. Ross Morrissey wrote: 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

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2009-07-27 Thread Ross Morrissey
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

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2009-07-27 Thread Ross Morrissey
Good guess, but I *always* use the full path to executable when I'm using anything other than telnet. On Mon, Jul 27, 2009 at 7:23 AM, wrote: > Sorry, I'm on digest... > Does the user executing this command have a profile setup with the paths to > Universe? I've been working in UniData so it ma

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2009-07-27 Thread Shaun.Ferguson
Sorry, I'm on digest... Does the user executing this command have a profile setup with the paths to Universe? I've been working in UniData so it may be different, but the user has to have their environment setup to the correct paths to UniData bin, etc (UDTBIN = /blablabla/ud/bin). Shaun Fergu

Re: [U2] Error 4 22 from PHP exec of uv on AIX

2009-07-24 Thread Henry Unger
Morrissey Sent: Friday, July 24, 2009 2:12 PM To: u2-users@listserver.u2ug.org Subject: [U2] Error 4 22 from PHP exec of uv on AIX This is a bit of a stumper (for me, anyway). I'm having issues trying to exec uv from PHP on AIX. Things work just fine in Windows (Apache or IIS) or Linux (Apache)

[U2] Error 4 22 from PHP exec of uv on AIX

2009-07-24 Thread Ross Morrissey
This is a bit of a stumper (for me, anyway). I'm having issues trying to exec uv from PHP on AIX. Things work just fine in Windows (Apache or IIS) or Linux (Apache) so I know my PHP syntax is fine. On the AIX (5.2 uv 10.2.7) box: Using PHP, I can exec 'echo 1 + 2 | bc' and get 3 I can run this