[tpop3d-discuss] tpop3d 1.4.2 : feature requests.
Dave Baker
dave at dsb3.com
Fri, 9 Aug 2002 10:37:30 -0400
On Fri, Aug 09, 2002 at 08:15:56AM -0600, Ben Schumacher wrote:
> Is the 'run' script you're using with daemontools based on a bourne shell?
> If so you, can redirect STDERR to STDOUT for every child process that is a
> child of that one fairly trivially.
>
> Try something like this:
>
> #!/bin/sh
> exec 2>&1
> /usr/local/sbin/tpop3d -d
>
> That should have the desired effect.
>
Ah! Problem solved. My /sbin/sh (freebsd 4.5) is not bourne-ish enough
for the 2>&1 to take effect. changing the first line to reference bash
does the trick.
Thanks.
Dave
--
- Dave Baker : dave@dsb3.com : dave@devbrain.com : http://dsb3.com/ -
GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D