Re: [ADMIN] pgsql.sh - Mailing list pgsql-admin

From Jonah Kuo
Subject Re: [ADMIN] pgsql.sh
Date
Msg-id 365A5D91.B567EF68@mail.lbfe.org.tw
Whole thread Raw
In response to Re: [ADMIN] pgsql.sh  (Matthew Hixson <hixson@frozenwave.com>)
Responses Re: [ADMIN] pgsql.sh  (Matthew Hixson <hixson@frozenwave.com>)
List pgsql-admin
Matthew Hixson wrote:

> On this line:
>
> -S -o -F > /usr/local/pgsql/errlog' &
>
> Modify it to look like this:
>
> -S -o -F 2>&1 > /usr/local/pgsql/errlog' &
>
> Assuming this script runs through bash it will direct standard error
> (stderr) to standard output (stdout).  All output will be sent to
> /usr/local/pgsql/errlog.
>
> Enjoy.
>

It still doesn't help,  I have bash installed in /usr/local/bin, then
I modified the first line to #!/usr/local/bin/bash, amd modified
the line you wrote above, then try again, then result in same.

I simply test it to see if it works as do the following, login as postgres
and enter interactive monitor,

postgres=> ls;
ERROR:  parser: parse error at or near "ls"

The same ERROR message appears on the console, and errlog size is
still 0.


Jonah


pgsql-admin by date:

Previous
From: Matthew Hixson
Date:
Subject: Re: [ADMIN] pgsql.sh
Next
From: Matthew Hixson
Date:
Subject: Re: [ADMIN] pgsql.sh