EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  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  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Need an equivalent cdCommands for RTEMS
From: Eric Norum <[email protected]>
To: [email protected]
Cc: EPICS tech-talk <[email protected]>
Date: Mon, 5 Nov 2007 11:14:50 -0600
Ahh....*now* I understand.
I didn't realize that you want this to work completely separated from EPICS. I think that envPaths should work with cexp -- the default implementation of epicsEnvSet doesn't seem to call on anything outside of libCom. You'd then make calls to chdir(getenv(xxxx)) where xxxx had been previously set by a call to epicsEnvSet().


On Nov 5, 2007, at 10:46 AM, Ernest L. Williams Jr. wrote:

Hi Eric,


Okay, so this means that iocsh has no dependencies on EPICS? We could use iocsh as just a basic SHELL with the RTEMS OS?

I guess we will still need to do some kind of cdCommands to support the
cexp SHELL that we use here.






Thanks,
Ernest



On Mon, 2007-11-05 at 10:38 -0600, Eric Norum wrote:
On Nov 5, 2007, at 10:18 AM, Ernest L. Williams Jr. wrote:

On Mon, 2007-11-05 at 10:10 -0600, Eric Norum wrote:
We use envPaths here, since we use iocsh rather than cexp to start
our RTEMS IOCs.
Or am I misunderstanding what you want?

There are certain operating system specific commands one might perform
before EPICS is loaded up. For example, we may want to cd around the
file system in an easy way before EPICS loads up.

And envPaths/iocsh allow this. Here are the first few lines from one of our RTEMS IOC startup scripts. The values of TOP, ASDSTD, and ARCH are all set by the envPaths file.

##################################################################### ###
#####
# Set up environment variables
# EDM wants to transfer waveform values as 4-byte values which means
that
# EPICS_CA_MAX_ARRAY_BYTES must be greater than 2^18*4.
< envPaths
epicsEnvSet EPICS_CA_MAX_ARRAY_BYTES 1050000
epicsEnvSet TZ "CST6CDT,M 3.2.0,M 11.1.0"
epicsEnvSet MAX1619_ADDR 24
< ../nfsCommands
epicsEnvSet IOC_INFO /iocinfo
epicsEnvSet P B:tune:
cd "${TOP}"
.....
then later on in the script there's a more complex cd:
cd "${ASDSTD}/bin/${ARCH}"







-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793



Navigate by Date:
Prev: Re: EPICS on Mac OS X 10.5 Bertrand H.J. Biritz
Next: Re: EPICS on Mac OS X 10.5 Bertrand H.J. Biritz
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: 2 job openings at PSI Swiss Light Source Andreas Isenegger
Next: Tornado 2.2.2 bug Ron Sluiter
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·