[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: redirecting stderr to memory



> (I need that to display messages directed to stderr from busybox when
> linked to a Slang program, as in:

 Uh? Why don't you just do...

int p[2];
pipe(p);
if(!fork())
{
	dup2(p[1],2);
	exec...
}
/* now you can read the output from the p[0] file descriptor... */


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: