Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CGI-BIN Program and File descriptor inheritance problem? (HELP!)

0 views
Skip to first unread message

Tim Kadom

unread,
Dec 5, 1994, 6:01:59 PM12/5/94
to

Hello,

I still have not been able to solve this problem. it seems
that whenever I exec inside a program that is called by my server,
whatever happens inside of that exec is lost. The rest of the page
is correct, so I know I am sending the correct mime header. When I run
the program as myself, it works correctly as well. When the Mosaic
server invokes it however, it simply skips over the part where the
exec should be happening (In my case this is embedded SQL calls to an
ORACLE DB- but it could be anything. )

I have experimented with calls like system("/bin/ls"), and
system("whoami"). the results are always the same. no results when the
server initiates the program, correct results when i do it. When I
say no results for the server I mean the server does get a correct
html page, but the part where the exec call occurs is not present. as
if it was written to some other stream. I also tried

system("/bin/ls > /tmp/testls"). The file testls did not show up in temp
when the mosaic server invoked the program either. Has someone run into
similar difficulties? Somehow I think my file descriptors are getting
screwed up between the parent and the child process. I am running on a
RS6000, under AIX 3.2.5, but the results are the same for an alpha
running osf1. Am I missing something here?


Please help,

Tim

0 new messages