EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Running Linux commands inside 'st.cmd'
From: "Amien Crombie" <[email protected]>
To: <[email protected]>
Date: Thu, 20 Feb 2014 15:09:32 +0200
Hi

I have the following 'st.cmd'

#!../../bin/linux-arm/ioc48
< envPaths
cd ${TOP}

## Want to add the 'echo' Linux command but it fails
## echo 113 > /sys/class/gpio/export

dbLoadDatabase "dbd/ioc48.dbd"
ioc48_registerRecordDeviceDriver pdbbase
int32DriverInit("int32",-32768,32767)
dbLoadTemplate "db/iocPV.substitutions"
set_savefile_path("../save")
set_pass1_restoreFile("channelmap.sav")
set_pass1_restoreFile("channelspacing.sav")
save_restoreSet_DatedBackupFiles(1)
save_restoreSet_NumSeqFiles(3)
save_restoreSet_SeqPeriodInSeconds(6000)
save_restoreSet_RetrySeconds(120)

cd ${TOP}/iocBoot/${IOC}
iocInit
dbpf devx:range 1


Either EPICS's st.cmd cannot run Linux commands or I'm doing something wrong.
Thanks
Amien
Cape Town

Mogamad Amien Crombie
NRF : iThemba LABS
EIT Group
Laboratory for Accelerator Based Sciences
Somerset West, Western Cape 
South Africa

 


<<attachment: winmail.dat>>


Replies:
RE: Running Linux commands inside 'st.cmd' Mark Rivers

Navigate by Date:
Prev: Fwd: epics base with MinGW-w64 Xiaoqiang Wang
Next: RE: Running Linux commands inside 'st.cmd' Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Epics/Raspberry Pi data acquisition Hill, Jeff
Next: RE: Running Linux commands inside 'st.cmd' Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·