From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,a83f48e38df3b490 X-Google-Attributes: gidf7344,public X-Google-Thread: fc7fa,a83f48e38df3b490 X-Google-Attributes: gidfc7fa,public From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Subject: Re: Problem with C function 'system()'... Date: 1995/12/01 Message-ID: <49lphs$5q3@gap.cco.caltech.edu>#1/1 X-Deja-AN: 120694239 distribution: world references: ,<1995Nov29.152052.60@jenson.demon.co.uk> organization: HST Wide Field/Planetary Camera reply-to: carl@SOL1.GPS.CALTECH.EDU newsgroups: comp.os.vms,comp.sys.vms In article <1995Nov29.152052.60@jenson.demon.co.uk>, paul_h@jenson.com (Paul) writes: =Seen some replies to this one explaining why it doesn't work, have you tried: = = fclose (stdout); = stdout = fopen (redir_file, "w"); Just out of curiosity, why use fclose() and fopen() when you've got freopen(), which is there to do exactly what it you're attempting with fclose() and fopen()? -------------------------------------------------------------------------------- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My understanding of astronomy is purely at the amateur level (or below). So unless what I'm saying is directly related to VAX/VMS, don't hold me or my organization responsible for it. If it IS related to VAX/VMS, you can try to hold me responsible for it, but my organization had nothing to do with it.