redirect.c

Greed088/src/redirect.c · 186 B

From the archive greed0.88d.tgz

Download the archive   « Back to the archive contents

#include <stdio.h>

int main( int argc, char **argv )
{
    freopen( argv[2], "a", stdout );
    freopen( argv[2], "a", stderr );

    system( argv[1] );

    exit( 0 );
    return 0;
}

Site Stats

Snippets: 1791
Codebases: 571