[DGD]Logging

Mikael Lind z94lind at mtek.chalmers.se
Mon Apr 23 12:53:02 CEST 2001


Quoting Lord Lerkista from 04:31, 2001-04-23:

> Ok y use:
> 
> driver /rlyeh/rlyeh.dgd | tee /rlyeh/rlyeh.log
> 
> but only creates log.dgd with nothing inside!!
> 
> -rw-rw-r--   1 root      wheel         0 Apr 23 04:25 log.dgd
> 
> =/
> 
> i think that i will have to put some write_file in driver.c!!

Sorry, my mistake. DGD outputs to stderr, not stdout. Both of these
are usually connected to the text terminal so one does not always
notice that they are in fact two separate streams. Try:

  driver /rlyeh/rlyeh.dgd |& tee /rlyeh/rlyeh.log

The usage of |& instead of | tells the shell to pipe not only stdout
but also stderr to the tee command. That should do the trick. (I even
verified it this time!)

My apologies for temporarily turning the DGD list into a unix shell
tutorial. ;D

// Elemel/ Mikael

--
Give up yourself unto the moment / The time is now / Give up yourself
unto the moment / Let's make this moment last // Moloko


List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list