From: fredex AT fcshome DOT stoneham DOT ma DOT us Message-Id: <199609021921.PAA02854@fcshome.stoneham.ma.us> Subject: Re: stderr redirection To: ogabbay AT israel DOT kla DOT com (Omer Gabbay) Date: Mon, 2 Sep 1996 15:21:03 -0400 (EDT) Cc: djgpp AT delorie DOT com In-Reply-To: <322AD168.7EE3@israel.kla.com> from "Omer Gabbay" at Sep 2, 96 12:22:00 pm Content-Type: text Thinking furiously, Omer Gabbay wrote: > > Hi, > Does enybody know how I can redirect the 'stderr' of dos commands ? > Thanks > Omer > > e-mail: ogabbay AT israel DOT kla DOT com > Sure: 1: Use the redir.exe that comes with DJGPP 2: Use this trivial program: #include main (int argc, char ** argv) { dup2 (fileno (stdout), fileno (stderr)); execvp (argv[1], argv + 1); } name it redir.c then compile it. Use it like this: redir <...> Fred -- ------------------------------------------------------------------------------- .---- Fred Smith / Office: fred AT computrition DOT com ( /__ ,__. __ __ / __ : / 508-663-2524 / / / /__) / / /__) .+' Home: fredex AT fcshome DOT stoneham DOT ma DOT us / / (__ (___ (__(_ (___ / :__ 617-438-5471 -------------------------------- Jude 1:24,25 ---------------------------------