EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: iocLogServer simple browser
From: Maren Purves <[email protected]>
To: "'MacKenzie, Ronald R.'" <[email protected]>
Cc: [email protected]
Date: Thu, 15 Nov 2007 08:52:52 -1000
Hi Ron,

we log to a new file each day, and if you want to read it you
can use system commands like less, tail, grep, or some combination
of the those (something along the lines of "tail -f <file>| grep <machine>")

HTH,
Maren

Jeff Hill wrote:
Hi Ron,

Does a simple little program exist in C to read the iocLogServer
circular file as messages are written to it?  I'm just wanting to see
the circular file messages from the program on the screen (stdout).

I'm not aware that any program like that exists.


Perhaps a superior approach would be to modify the log server so that it
sends the log messages by default to stdout if the EPICS_IOC_LOG_FILE_NAME
environment variable isn't defined (or is empty). I suppose also that the
logic in the log server implementing a circular file would need to be
selectively disabled if the file descriptor being written to isn't a file
(we could easily test the file descriptor to see if it is a file or not).

There are probably already some UNIX command line tools that pipe their
input to a length constrained circular file? And of course the command line
tool tee can be used to break out to multiple destinations.


Replies:
RE: iocLogServer simple browser Al Honey
References:
RE: iocLogServer simple browser Jeff Hill

Navigate by Date:
Prev: Re: Power Supply Record? Maren Purves
Next: RE: iocLogServer simple browser Al Honey
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: iocLogServer simple browser Jeff Hill
Next: RE: iocLogServer simple browser Al Honey
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·