Dmitry Volkoff, on 2003-12-15, wrote:

> I need to redirect all logs to stdout, but this doesn't work on Linux. 
> /dev/stdout on Linux is a symlink into /proc and the device ownership 
> is determined by the UID of the invoking user. User ``www'' cannot write
> to stdout owned by root... Any ideas?

Before you actually run mathopd, have the starting shell script run
"chown www `readlink -f /dev/stdout`".  I'm not sure if a new link will be
created when the shell forks to run mathopd, but if it is, simply call
mathopd with the shell's "exec", so a new process is not created.

-- 
Frank Tobin                     http://www.neverending.org/~ftobin/

Reply via email to