nothing appears on screen.
if i try this:
___________________________________
printf("test"); fflush(stdout); sleep(10);
___________________________________
then i can see the output "test"... for 10 secondes, and after that the new line of shell overwrites the line of data.
this is:
___________________________________
#./myprog
test
___________________________________
for 10 secondes and then:
___________________________________
#./myprog
#
____________________________________
ive been told that this was beacause the shell overwrites the data.
does anybody knows how to prevent my bash to overwrite my progs?!!!
thanks.
then it appears properly on screen.
but what if i don't want to use \n ?
and also, the new bash line should appear next to my data, but should not
overwrite it! i would like to know why...