EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Redirect of device support messages in EPICS Base 3.14.12.7
From: Andreas Balzer <[email protected]>
To: <[email protected]>
Date: Wed, 21 Feb 2018 13:00:31 +0100
Hi Carsten!


Simply use

#include <epicsStdioRedirect.h>

instead of <stdio.h>.


Regards,

Andreas


On 02/21/2018 11:46 AM, Carsten Winkler wrote:
Dear all,

I'm trying to support redirect stdout to file for my device support
driver. I can use redirection (command > file name) of output in my IOC
Shell for built-in functions as "dbl" or "dbnr" only. When I try to use
it for my device support functions, output always appears on screen
only. I investigated the source and found normal usage of "printf" in
dbTest.c How can I implement redirect stdout to file for my device
support driver?

Best regards
Carsten


________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech (kommissarisch), Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de


________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech (kommissarisch), Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de

Replies:
Re: Redirect of device support messages in EPICS Base 3.14.12.7 Andrew Johnson
References:
Redirect of device support messages in EPICS Base 3.14.12.7 Carsten Winkler

Navigate by Date:
Prev: Redirect of device support messages in EPICS Base 3.14.12.7 Carsten Winkler
Next: Re: Redirect of device support messages in EPICS Base 3.14.12.7 Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Redirect of device support messages in EPICS Base 3.14.12.7 Carsten Winkler
Next: Re: Redirect of device support messages in EPICS Base 3.14.12.7 Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 21 Feb 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·