Advanced shell scripting question
Kevin D. Clark
kclark at CetaceanNetworks.com
Thu Sep 5 16:49:08 EDT 2002
jim.mcginness at att.net writes:
> When I
> tried it, it preserved the order of the output, thanks to
> the writer process being at a lower priority than the
> readers.
This doesn't work either. Try using the following program as input to
such a scheme:
#include <stdio.h>
int
main(int argc, char *argv[])
{
int i;
for (i=0; i<100000; i+=2) {
printf("%d\n", i);
fprintf(stderr, "%d\n", i+1);
}
}
Please see my previous posts for an explanation as to why.
Regards,
--kevin
--
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc
More information about the gnhlug-discuss
mailing list