From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8b34,ca4eac57f2a1aaff,start X-Google-Attributes: gidf8b34,public X-Google-Thread: fee84,ca4eac57f2a1aaff,start X-Google-Attributes: gidfee84,public From: hippo@garply.com (Hugh Messenger) Subject: httpd/OSF/perl/CGI stdin pipe problem Date: 1995/09/16 Message-ID: #1/1 X-Deja-AN: 110249823 organization: Net Results, Inc. newsgroups: comp.unix.osf.osf1,comp.infosystems.www.servers.unix I'm running Apache 0.6.5 (a flavour of httpd 1.4.x) on an Alpha/OSF box. I'm having a bizarre problem with piping the output of commands into perl CGI scripts. For instance ... open (SWISH, "/web/swish/swish -w foo bar -f /web/swish/sources/index.swish |"; while () { print; } This code chunkette works fine if run by hand from a shell. As soon as I try and run it inside a CGI script (using the GET method to provide the search criteria for swish), the output simply never shows up. If I replace the call to 'swish' with some random built in system command (like 'w'), it works fine. It just refuses to work with anything but shell/system commands. I'm running with perl5.001, but have tried 4.x and 5.000 as well. Ay Suggestions Gratefully Accepted. -- hugh PS - I've already fixed the generic CGI/cmd fork/exec/sleep problem, so it ain't that, although I suspect the problem may be of similar origin. -- | Hugh Messenger - VP and Systems Manager - Net Results, Inc. | | hippo@garply.com - http://www.garply.com/garply/staff/hippo |