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  <20122013  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  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: iocshCmd, redirection, and function pointers
From: "Ernest L. Williams Jr." <[email protected]>
To: "Kim, Kukhee" <[email protected]>, EPICS Techtalk <[email protected]>
Date: Tue, 01 May 2012 17:43:24 -0700
Hi everyone,

Looks like I have a work-around for what was happening under RTEMS while using iocshCmd:

Thanks to Till:  )


# This one does not work: as reported by Stephanie Allison in this tech-talk thread
#iocshCmd("dbior > /data/iocInfo/IOC.dbior")

# However, this one does work under RTEMS. Thanks to Till:
Cexp@ioc-b34-ev02> > "/data/iocInfo/IOC.dbior" : dbior()



Cheers,
Ernest



On 03/14/2012 05:14 PM, Kim, Kukhee wrote:
Hi Eric;

The epicsStdioRedirect.h itself already includes the epicsStdio.h file.
Probably, we should merge those two files to one file.

Thank you.
Best regards,
Kukhee
--------------------------------------------
Kukhee Kim
SLAC National Accelerator Laboratory
2575 Sand Hill Rd, MS 64
Menlo Park, CA 94025
Email: [email protected]
Phone: (650)926-4912


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Eric Norum
Sent: Wednesday, March 14, 2012 8:39 AM
To: EPICS Tech Talk
Subject: Re: iocshCmd, redirection, and function pointers

On Mar 14, 2012, at 3:12 AM, Dirk Zimoch wrote:

Eric Norum wrote:
For I/O redirection to work a source file must include epicsStdioRedirect.h.
This sucks.
Perhaps, but it does work across all supported platforms.

It this is the case, I would say that there is something wrong with the EPICS redirection. Code should not need to know about its "environment". This contradicts any good programming practice.
When this was originally implemented we felt it should be optional.  Perhaps now after 10 years in the field we should just add
#include<epicsStdioRedirect.h>
in epicsStdio.h.



References:
iocshCmd, redirection, and function pointers Allison, Stephanie
Re: iocshCmd, redirection, and function pointers Eric Norum
Re: iocshCmd, redirection, and function pointers Dirk Zimoch
Re: iocshCmd, redirection, and function pointers Eric Norum
RE: iocshCmd, redirection, and function pointers Kim, Kukhee

Navigate by Date:
Prev: Re: iocshCmd, redirection, and function pointers Ernest L. Williams Jr.
Next: RE: asynPortDriver callbacks to I/O Intr, how to propagate an error? Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: iocshCmd, redirection, and function pointers Ernest L. Williams Jr.
Next: Re: iocshCmd, redirection, and function pointers Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·