linux redirect problem
- From: cmk128@xxxxxxxxxxx
- Date: 27 Jun 2006 23:37:56 -0700
Hi
here is my c file, compile in gcc 3.X in linux:
#include <stdio.h>
int main()
{
printf("Hello\n");
if (fork() == 0) printf("world! \n");
}
When i execute the a.out like this:
a.out > myFile.
Inside myFile:
Hello
Hello
world!
How come?
thanks
from Peter (cmk128@xxxxxxxxxxx)
.
- Follow-Ups:
- Re: linux redirect problem
- From: Keith Thompson
- Re: linux redirect problem
- From: Bill Pursell
- Re: linux redirect problem
- Prev by Date: Re: How to prevent the quick disappearance of window
- Next by Date: Re: linux redirect problem
- Previous by thread: fopen() causes an "obvious" time delay in WC ???
- Next by thread: Re: linux redirect problem
- Index(es):
Relevant Pages
|