Newsgroups: comp.sys.amiga.tech
Path: utzoo!utgpu!watserv1!maytag!watdragon!lion.waterloo.edu!tdesjardins
From: tdesjardins@lion.waterloo.edu (Tim Desjardins)
Subject: Problems with Aztecs fexecl
Message-ID: <1990Sep18.065757.13260@watdragon.waterloo.edu>
Keywords: Aztec, fexec
Sender: daemon@watdragon.waterloo.edu (Owner of Many System Processes)
Organization: University of Waterloo
Date: Tue, 18 Sep 90 06:57:57 GMT
Lines: 35


  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
