Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: RE: ???registrar(function_name)
From: "Liyu, Andrei" <liyua@ornl.gov>
To: Eric Norum <norume@aps.anl.gov>
Cc: tech-talk@aps.anl.gov
Date: Mon, 24 Apr 2006 16:14:07 -0400
Thank you - Eric.
1. I changed in real st.cmd file but I didn't change in the comment.
2. <epicsStdioRedirect.h> appeared in 3.14.7. I suppose a lot of people
can't use that. I added comment and

attach file again.

Thanks, Andrei.

-----Original Message-----
From: Eric Norum [mailto:norume@aps.anl.gov] 
Sent: Monday, April 24, 2006 3:43 PM
To: Liyu, Andrei
Cc: tech-talk@aps.anl.gov
Subject: Re: ???registrar(function_name)

There's a small error in the example which was attached to the  
original posting.  The example includes a comment indicating that the  
command is to be invoked as:
      IOCShellFunctionCall( "I am user-defined function in IOC shell")

This does not match the code in the example.  In fact, the comment  
should state that the command is to be invoked as:
	IOCShellFunction( "I am user-defined function in IOC shell")


Also, it's a good idea to include <epicsStdioRedirect.h> rather than  
<stdio.h> in any file which contains functions which produce output  
as part of an IOC shell command.   This ensures that output  
redirection works as expected.

On Apr 24, 2006, at 2:18 PM, Liyu, Andrei wrote:

> Hi,
>
>
> I again met this problem.
>
> Also Geoff Savage has asked here http://www.aps.anl.gov/epics/tech- 
> talk/2006/msg00493.php
>
> So I created the simplest example and attach to this e-mail.
>
>
> Thanks, Andrei.
>
>
> P.s. Maybe someone include the example or something similar to  
> IOC's example.
>
>
> <ExampleIOCShellFunction.c>

-- 
Eric Norum <norume@aps.anl.gov>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793


Attachment: ExampleIOCShellFunction.c
Description: ExampleIOCShellFunction.c


Navigate by Date:
Prev: Re: ???registrar(function_name) Eric Norum
Next: RE: IOC error message - CA online suspended Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: ???registrar(function_name) Eric Norum
Next: No more CA connections? R3.14.7, 3.14.8.2, CAJ Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·