Re: very basic question

[prev] [thread] [next] [Date index for 2005/03/14]

From: Brian Reichert
Subject: Re: very basic question
Date: 18:24 on 14 Mar 2005
On Thu, Mar 10, 2005 at 02:43:44PM -0600, Jain, Abhay K, ALABS wrote:
> I must apologize if it is not directly relevant to mod-perl.
> I have tried to search google and other places but no luck.
> As I had mentioned I have apache built with mod-perl 2.
> Some old cgi scripts were written in ksh and use of set -x
> produced complete output in browser window under Netscape.
> While Apache seem to ignore stderr. Is there any way
> I can get that output sent to the browser under Apache. Thanks.

If your question can be restated thusly:

How can I cause my ksh scripts to send stderr to stdout?

You can fake it thusly; add this early on in your script:

  exec 2>&1

        -- 
        Brian Reichert				<reichert@xxxxxxx.xxx>
55 Crystal Ave. #286			Daytime number: (603) 434-6842
Derry NH 03038-1725 USA			BSD admin/developer at large	

very basic question
Jain, Abhay K, ALABS 20:43 on 10 Mar 2005

Re: very basic question
Tom Schindl 07:12 on 11 Mar 2005

Re: very basic question
Stas Bekman 15:11 on 11 Mar 2005

Re: very basic question
Brian Reichert 18:24 on 14 Mar 2005

Generated at 08:39 on 15 Mar 2005 by mariachi v0.52