( ESNUG 359 Item 8 ) --------------------------------------------- [9/13/00]

From: "Robert Wiegand" <rwiegand@nxtwavecomm.com>
Subject: Workaround For A Little Control-C "dc_shell | tee logfile" Gotcha

Hi John,

I got hit by a little gotcha recently that I thought I should share.

I've got into the habbit of using the "dc_shell | tee logfile" syntax for
interactive debugging so I can have a logfile for the session.  One nice
thing about interactive sessions, is that a control-C will allow you to
checkpoint, or stop something that is compiling into oblivion and see what's
wrong.  This may be very obvious to some, but I found out the hard way that
when using the " | tee" syntax, the control-C is passed to the "tee" instead
of the dc_shell session.  This basically breaks the pipe and stops the job,
with no way that I could find to recover.  Any UNIX gurus out there know
how to recover if this happens?  To prevent this from happening, make sure
to use the -i switch on tee, which tells it to ignore interrupts as follows:

                       "dc_shell | tee -i logfile"

This allows the use of control-C for dc_shell.

    - Bob Wiegand
      NxtWave Communications                     Langhorne, PA


 Sign up for the DeepChip newsletter.
Email
 Read what EDA tool users really think.


Feedback About Wiretaps ESNUGs SIGN UP! Downloads Trip Reports Advertise

"Relax. This is a discussion. Anything said here is just one engineer's opinion. Email in your dissenting letter and it'll be published, too."
This Web Site Is Modified Every 2-3 Days
Copyright 1991-2024 John Cooley.  All Rights Reserved.
| Contact John Cooley | Webmaster | Legal | Feedback Form |

   !!!     "It's not a BUG,
  /o o\  /  it's a FEATURE!"
 (  >  )
  \ - / 
  _] [_     (jcooley 1991)