Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

tcl script capture on a txt file

hello I'm novice in the use of the tcl script.

does anyone know how can I capture on a txt file the output coming from the schell following the script?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    hello I'm novice in the use of the tcl script.

    does anyone know how can I capture on a txt file the output coming from the schell following the script?

    --- Quote End ---

    I don't see how this has anything to do with a Tcl script. It sounds like what you want is to capture the output from a program, that just happens to accept a Tcl script on the command line. In that case, just use the shell:

    For example, here's a program that generates output:

    
    dwh@kiwi ~
    $ quartus_stp
    Quartus II SignalTap II
    Version 9.0 Build 184 04/29/2009 Service Pack 1 SJ Web Edition
    Copyright (C) 1991-2009 Altera Corporation
    Usage:
    ------
    quartus_stp  | -v]
    quartus_stp <project name> 
    quartus_stp -t <script file> 
    quartus_stp -s
    quartus_stp --tcl_eval <tcl command>
    

    and here's that output redirected to a file

    
    dwh@kiwi ~
    $ quartus_stp  > tmp.txt
    

    Cheers,

    Dave