* Redirecting a C program's STDOUT
@ 2001-05-23 20:48 Don Newcomer
0 siblings, 0 replies; only message in thread
From: Don Newcomer @ 2001-05-23 20:48 UTC (permalink / raw)
To: tru64-unix-managers
This seems really simple but I can't make it work. I'm running Tru64
V4.0D. I have a little C program that looks like this:
#include <stdio.h>
main (argc, argv)
int argc;
char **argv;
{
while (1) {
printf( "testing\n" );
sleep( 3 );
}
}
If I compile and run it, it generate the lines like you'd expect. HOWEVER,
if I run it with STDOUT redirected to a file, nothing appears in the file.
abc >& abc.log &
The log is always empty. Any idea what I'm missing here?
================================================================================
Don Newcomer Dickinson College
Associate Director, System and Network Services P.O. Box 1773
newcomer@dickinson.edu Carlisle, PA 17013
Phone: (717) 245-1256
FAX: (717) 245-1690
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-23 20:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-23 20:48 Redirecting a C program's STDOUT Don Newcomer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox