On Monday 10 October 2005 02:11 pm, Herbert Poetzl wrote:
hmm they are there.. maybe the problem is multilog although it worked ok on
the host... when run under smtp it logs to the smtp log via multilog. when i
run it from the terminal in testing it logs to its own /var/log/spf.log
maybe its the fault of the loggers.. will have to look at them.. the guest
runs syslog-ng for its logger..
> On Mon, Oct 10, 2005 at 01:51:37PM -0400, Chuck wrote:
> > On Monday 10 October 2005 01:32 pm, Robin Lee Powell wrote:
> >
> > oh it outputs to the screen ok when i run it from a terminal, but this is
> > loaded as a plugin to qmail and is supposed to get logged into the qmail
smtp
> > log which it does when the entire qmail system is run on an individual
> > machine or on a host. as a guest the program does its job but reports
> > nothing.
> >
> > > On Mon, Oct 10, 2005 at 12:27:07PM -0400, Chuck wrote:
> > > > I have a simple c program that outputs to stderr. while it works
> > > > in the host it does not work in a guest which i am assuming is due
> > > > to stderr being a kernel thing..
>
> maybe you are missing the symlinks in /dev which some
> scripts seem to require (and are quite fine inside a
> linux-vserver guest's dev)
>
> $ ll /dev/std* /dev/fd
> lr-xr-xr-x 1 root root 13 Oct 10 11:24 /dev/fd -> /proc/self/fd/
> lr-xr-xr-x 1 root root 4 Oct 10 11:24 /dev/stderr -> fd/2
> lr-xr-xr-x 1 root root 4 Oct 10 11:24 /dev/stdin -> fd/0
> lr-xr-xr-x 1 root root 4 Oct 10 11:24 /dev/stdout -> fd/1
>
> HTH,
> Herbert
>
> > > Erm. I think you have something very wrong. Plenty of programs in
> > > my guest output to stderr. But let me test, just in case:
> > >
> > > mooix:/tmp# cat test.c
> > > #include <stdio.h>
> > > #include <stdlib.h>
> > >
> > > void main(void)
> > > {
> > > fprintf( stderr, "test.\n" );
> > > }
> > > mooix:/tmp# gcc test.c -o test
> > > test.c: In function 'main':
> > > test.c:5: warning: return type of 'main' is not 'int'
> > > mooix:/tmp# ./test
> > > test.
> > > mooix:/tmp#
> > >
> > > -Robin
> > >
> > > --
> > > http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
> > > Reason #237 To Learn Lojban: "Homonyms: Their Grate!"
> > > Proud Supporter of the Singularity Institute - http://singinst.org/
> > > _______________________________________________
> > > Vserver mailing list
> > > Vserver@list.linux-vserver.org
> > > http://list.linux-vserver.org/mailman/listinfo/vserver
> > >
> >
> > --
> >
> > Chuck
> >
> > "...and the hordes of M$*ft users descended upon me in their anger,
> > and asked 'Why do you not get the viruses or the BlueScreensOfDeath
> > or insecure system troubles and slowness or pay through the nose
> > for an OS as *we* do?!!', and I answered...'I use Linux'. "
> > The Book of John, chapter 1, page 1, and end of book
> >
> >
> > _______________________________________________
> > Vserver mailing list
> > Vserver@list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
>
-- Chuck "...and the hordes of M$*ft users descended upon me in their anger, and asked 'Why do you not get the viruses or the BlueScreensOfDeath or insecure system troubles and slowness or pay through the nose for an OS as *we* do?!!', and I answered...'I use Linux'. " The Book of John, chapter 1, page 1, and end of book _______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserverReceived on Mon Oct 10 19:26:25 2005