On Friday April 4 2003 11:58, Tom Lane wrote: > "scott.marlowe" <[EMAIL PROTECTED]> writes: > > rotatelogs is in my path and all, it just never sees it. > > You mean the command fails? Or just that it doesn't capture output? > > > "$po_path" ${1+"$@"} </dev/null | $PGPATH/rotatelogs $logfile $DURATION > > 2>&1 & > > Most if not all of the postmaster's log output goes to stderr, so you'd > need > > "$po_path" ${1+"$@"} </dev/null 2>&1 | $PGPATH/rotatelogs ... > > to have any hope of useful results.
Hmmm. I would have agreed 2>&1 was needed, too, but this command seems to routinely capture all output, including ERRORs: nohup pg_ctl start | nohup rotatelogs server_log.%a 86400 Ed ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html