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: Re: Running Linux commands inside 'st.cmd'
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Date: Thu, 20 Feb 2014 10:26:03 -0600
On 02/20/2014 07:21 AM, Mark Rivers wrote:
> You can run Linux commands from st.cmd with the "system" command:
> 
> system "echo 113 > /sys/class/gpio/export"
> 
> However, the iocsh "system" command is not enabled by default for security reasons.
> This is from the IOC Application Developers Guide:
> 
> ***************************************************
> system command_string
> Send command_string to the system command interpreter for execution. This command is present
> only if some application database definition file contains registrar(iocshSystemCommand)
> and if the system provides a suitable command interpreter (vxWorks does not).
> ***************************************************

You can enable the system command in your IOCs by adding the system.dbd
file to the list of DBD files built into the IOC. It contains the
registrar command described above.

- Andrew
-- 
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock

References:
Running Linux commands inside 'st.cmd' Amien Crombie
RE: Running Linux commands inside 'st.cmd' Mark Rivers

Navigate by Date:
Prev: RE: Running Linux commands inside 'st.cmd' Amien Crombie
Next: Re: Fwd: epics base with MinGW-w64 Andrew Johnson
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: Running Linux commands inside 'st.cmd' Amien Crombie
Next: Waveform record I/O interrupt. asyn Vishnu Patel
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 ·