Subject: |
iocshCmd, redirection, and function pointers |
From: |
"Allison, Stephanie" <[email protected]> |
To: |
EPICS Tech Talk <[email protected]> |
Date: |
Tue, 13 Mar 2012 14:11:52 -0700 |
Hello,
When using redirection of output to a file in iocshCmd where the command is one that calls report functions via function pointer like dbior:
iocshCmd("dbior > /dat/dbiorOutput")
the output file contains only the output (printf) from the dbior routine itself but not output (printf) from each driver (called using a function pointer in drvet).
Is this a limitation of the iocsh, mixing C and C++, or the non-thread-safeness (as advertised in the app dev guide) of iocshCmd? Or am I doing something else wrong? It happens on linux-x86_64, RTEMS 4.9.4, and vxWorks 5.4.
Thank you,
Stephanie Allison
Here is dbior done at the ioc prompt and one redirected to a testing file. The testing file doesn't get any detail:
iocrpdev>dbior()
Driver: drvAsyn
gammaspare1 multiDevice:No canBlock:Yes autoConnect:Yes
gammaspare2 multiDevice:No canBlock:Yes autoConnect:Yes
gamma6032 multiDevice:No canBlock:Yes autoConnect:Yes
Driver: drvEtherIP
drvEtherIP V2.23 - ControlLogix 5000 PLC via EtherNet/IP
Driver: s7plc
$Id: drvS7plc.c,v 1.6 2011/09/01 17:27:42 saa Exp $
Driver: stream
StreamDevice 2.4 built Aug 16 2011 18:19:07
registered bus interfaces:
AsynDriverInterface
DummyInterface
DebugInterface
Device Support: devGpib
Device Support: s7plcMbbiDirect
devS7mem version: $Id: devS7plc.c,v 1.5 2011/09/23 15:44:05 saa Exp $
iocrpdev>iocshCmd("dbior > $(IOC_DATA)/iocrpdev/testing")
...
more $IOC_DATA/iocrpdev/testing
Driver: drvAsyn
Driver: drvEtherIP
Driver: s7plc
Driver: stream
Device Support: devGpib
Device Support: s7plcMbbiDirect
- Replies:
- Re: iocshCmd, redirection, and function pointers Eric Norum
- Navigate by Date:
- Prev:
Re: "Size of symbol changed" warnings building EPICS Base 3.14.12.2 J. Lewis Muir
- Next:
Re: iocshCmd, redirection, and function pointers Eric Norum
- 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
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
GPIB SRQ with StreamDevice Eric Williams
- Next:
Re: iocshCmd, redirection, and function pointers Eric Norum
- 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
2018
2019
2020
2021
2022
2023
2024
|