EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: IOC pid
From: "Jeff Hill" <[email protected]>
To: "'Emmanuel Mayssat'" <[email protected]>, "'tech-talk'" <[email protected]>
Date: Wed, 16 Nov 2005 17:40:32 -0700
On POSIX one could write analog input device support that calls getpid()
supplying the result as the signal value.

       #include <unistd.h>

       pid_t getpid(void);

Jeff

> -----Original Message-----
> From: Emmanuel Mayssat [mailto:[email protected]] 
> Sent: Wednesday, November 16, 2005 5:22 PM
> To: tech-talk
> Subject: IOC pid
> 
> 
> I would like to get the Process identifier of my ioc software 
> in one process variable. In bash there is the $$ environment 
> variable. Is there a simple way to get the PID of the running 
> IOC ? I am running all of my IOC on linux OS.
> 
> So I need to create a registar function?
> If so how can I return the value in an epics environment variable?
> 
> THanks,
> --
> E
> 


References:
IOC pid Emmanuel Mayssat

Navigate by Date:
Prev: IOC pid Emmanuel Mayssat
Next: RE: synApps Workshop Rees, NP (Nick)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: IOC pid Emmanuel Mayssat
Next: Getting soft IOC data with VC Xu HuiJuan
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·