Experimental Physics and Industrial Control System
Yes, through environment variables.
Here's an example from the Tektronix TDS3000/5000 support module:
===================================================================
#!../../bin/solaris-sparc/scopetest
< envPaths
< envParams
#
# Site-specific configuration
#
epicsEnvSet(FAMILY, "$(TDS_FAMILY=3000)") # Choose scope family
(3000 or 5000)
epicsEnvSet(ETHER, "$(TDS_ETHERNET=10.0.0.1)") # Choose scope ethernet
address
epicsEnvSet(SCOPE, "$(TDS_SCOPE=scopeTest:)") # Choose scope ethernet
address
.
.
.
.
## Set up IOC/hardware links -- Direct network connection
#vxi11Configure("L0", "$(ETHER)", 0, 0.0, "inst0", 0)
.
.
.
dbLoadRecords("db/TDSxxxx.vdb","scope=$
(SCOPE),L=0,A=3,ASG=RF1CTL,Name=RF1-HV,FAMILY=$(FAMILY)")
.
.
.
=====================================================================
If the environment variable is set, the IOC shell uses that value.
Otherwise a default value is used.
For example, to use a different ethernet address:
ETHER=192.168.1.123 ../../bin/solaris-sparc/scopetest st.cmd
On Jun 30, 2008, at 9:56 AM, haquin wrote:
Hi,
I wonder if it is possible to give some parameters to the startup
script ?
Here is an exemple of what I'd like to do :
>myioccore myst.cmd <parameter1> ... <parameterN>
Regards
--
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793
- Replies:
- Re: Is it possible to give parameters to the Startup script (st.cmd) Eric Norum
- References:
- Is it possible to give parameters to the Startup script (st.cmd) haquin
- Navigate by Date:
- Prev:
Is it possible to give parameters to the Startup script (st.cmd) haquin
- Next:
Re: Is it possible to give parameters to the Startup script (st.cmd) 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:
Is it possible to give parameters to the Startup script (st.cmd) haquin
- Next:
Re: Is it possible to give parameters to the Startup script (st.cmd) 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