g+
g+ Communities
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  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: iocshCmd, redirection, and function pointers
From: "Ernest L. Williams Jr." <ernesto@slac.stanford.edu>
To: "Kim, Kukhee" <khkim@slac.stanford.edu>, EPICS Techtalk <tech-talk@aps.anl.gov>
Date: Tue, 01 May 2012 17:42:13 -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: khkim@SLAC.Stanford.EDU
Phone: (650)926-4912


-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] 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: does CSS (CAJ?) support CA over an ssh tunnel Peter Milne
Next: Re: iocshCmd, redirection, and function pointers Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: RE: iocshCmd, redirection, and function pointers Kim, Kukhee
Next: Re: iocshCmd, redirection, and function pointers Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·