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
<2005>
2006
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
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|