Have you tried "&&" instead of ";" to separate the cd and uv commands?

rex

On Fri, May 6, 2011 at 11:56 AM, John Thompson <jthompson...@gmail.com> 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 entirely sure how to reply directly to the old post...
>
> Original Post ----------------
> From:
>
> Ross Morrissey
> Fri, 24 Jul 2009 14:11:56 -0700
>
> 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 at the shell as user nobody: 'cd /u2/uv/HS.SALES;
> /u2/uv/bin/uv "display 42"'
> I can get a CGI script to return 'cd /u2/uv/HS.SALES; /u2/uv/bin/uv "display
> 42"' correctly
>
> With PHP, I can't exec ' /u2/uv/bin/uv "display 42"' (after a chdir).
>
> UV throws this error (into the Apache logs):
>
> An error has occurred during uniVerse initialization
> Please contact the system administrator Error code: 4 22
>
> The codes translate into:
>
> 4. System V semaphores are probably not configured in the kernel.
>
> 22. (EINVAL) Invalid argument. Here are some examples of invalid
> arguments: dismounting a nonmounted device, mentioning an unknown
> signal in signal, reading or writing a file for which seek has generated a
> negative pointer. EINVAL is also set by math functions.
>
> Has anyone else bumped into this?  IBM support suggested it might be an
> issue with SIGTTOU but this seems unlikely to me - especially for a one-line
> command.  PHP is a bit outside their bailiwick.
>
> Thanks, Ross.
>
> End of Original Post --------------------
>
>
> I am having the exact same problem.  I have tried using nohup before
> called universe.
>
> There is something about when apache calls the php script, then the
> php script executing universe, that universe does not like...
>
> Anyone ever figure out a way around this?
>
>
> --
> John Thompson
> _______________________________________________
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to