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
> > [email protected]
> > 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
> [email protected]
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to