[comp.sys.amiga.tech] Problems with Aztecs fexecl

tdesjardins@lion.waterloo.edu (Tim Desjardins) (09/18/90)

  The Aztec manual leads me to believe that the stdout streams are the same
for the calling and the called processes. When I run the attached program
only the output from the calling process is written to the "test_file", where
the called programs output is echoed to the console. Have I read the manual
incorrectly, or am I doing something wrong.

Here are the test programs, thanks in advance for any help.

test.c
#include <stdio.h>

main()
{
    FILE *fpo;

    fpo = freopen( "test_file", "a", stdout );

    printf( "begin\n\n" );
    fexecl( "test2", "test2", ( char * ) NULL );
    printf( "\nend\n" );

    fclose( fpo ;)
}

test2.c
#include <stdio.h>
main()
{
    printf( "this is a test\n" );
}
--
Tim Desjardins.                       tdesjardins@lion.waterloo.{edu|CA}
"It's better to regret something you have done, then to regret something
you haven't done." Butthole Surfers