[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

5848.0. "redirecting output of cma_printf" by ATYISA::ROGGEBAND (Unplugged) Fri Jan 28 1994 04:18

    Hello,
    
    We are using DECmcc which is based on DEcthreads, and which replaces
    all printf statements with cma_printf calls.
    
    Is there an (easy) way to redirect the output of cma_printf to a file
    rather than  a terminal? (e.g. by a logical, or some other means) ? 
    
    Regards,
    
    Philippe.
T.RTitleUserPersonal
Name
DateLines
5848.1precisions pleaseTAEC::LAVILLATFri Jan 28 1994 08:1818
Re .0

>    
>    Is there an (easy) way to redirect the output of cma_printf to a file
>    rather than  a terminal? (e.g. by a logical, or some other means) ? 
>    
	Philippe,

    Could you precise a bit your environment : VMS/ULTRIX/both, home made
    AM/FM/PM or standard MCC ones, etc...

    Have you an answer for this problem using standard printf : suppose you
    do not use MCC, how would you redirect all printf output ?

    Regards.

    Pierre.

5848.2ATYISA::ROGGEBANDUnpluggedMon Jan 31 1994 11:0820
    Pierre,
    
>    Could you precise a bit your environment : VMS/ULTRIX/both, home made
>    AM/FM/PM or standard MCC ones, etc...

    Environment: Ultrix, home-made AM
     
>    Have you an answer for this problem using standard printf : suppose you
>    do not use MCC, how would you redirect all printf output ?
    
    I'm not an U*ix expert, but I believe you can redirect the standard
    output (stdout ?) 
    
    The problem is that the development team has to provide a trace on file
    to pass "quality" related tests, which is why they need this
    redirection.
    
    Regards,
    
    Philippe.
5848.3Try redirecting the whole outputTAEC::LAVILLATMon Jan 31 1994 12:0829
Philippe,

The simplest way to do it is to redirect the output of your AM by 
starting it manually and redirct the output to a file : 

just type on the Ultrix prompt 'mcc_mymm_am X [Y/N] > filename' 

The number X can be determined by doing 'ps aux' on a system already 
running the mcc_mymm_am. Do not forget to kill any existing mcc_mymm_am
process before starting it manually (but I suppose you know this already).

for example :

mcc_domain_fm 2 Y > domain_output.lis

This will redirect all your output to the file 'filename'.

You may have a few problem with output buffering, but I can tell you more
on this if you *really* have the problem.

I do not know any simpler solution.

Hope this helps.

Regards.

Pierre.