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  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Multiline statement in iocsh
From: Hinko Kocevar via Tech-talk <[email protected]>
To: Ralph Lange <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 15 Jan 2020 14:26:06 +0000
In linux iocsh seems to not support that (even if the backslash is the last character on the line):

dbLoadRecords("sis8300bpm-board.template",\
st.cmd line 31: Trailing backslash.
"P=LAB:AMC-004-4:,R=,PORT=AMC,MAX_SAMPLES=300000")

I've been trying to have multi-line statements in my startup files before, as well. I wonder what it would take to have this supported in future versions..

//hinko
________________________________________
From: Tech-talk <[email protected]> on behalf of Ralph Lange via Tech-talk <[email protected]>
Sent: Wednesday, January 15, 2020 2:14:08 PM
To: EPICS Tech Talk
Subject: Re: Multiline statement in iocsh

On Wed, 15 Jan 2020 at 14:04, Saeed Haghtalab via Tech-talk <[email protected]<mailto:[email protected]>> wrote:
Is there any possibility to have multi-line statements in startup script like this:

dbLoadRecords(“myDb.db”, \     # First comment
                                “P=prefix, \         # Second comment
                                R=suffix”)            # third comment

Note that AFAIK multi-line statements in other interpreters (like shells) require the newline character to appear immediately after the backslash, so your example would *not* be a multi-line statement.

Cheers,
~Ralph


References:
Multiline statement in iocsh Saeed Haghtalab via Tech-talk
Re: Multiline statement in iocsh Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Multiline statement in iocsh Jemian, Pete R. via Tech-talk
Next: RE: Multiline statement in iocsh Saeed Haghtalab via Tech-talk
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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Multiline statement in iocsh Jemian, Pete R. via Tech-talk
Next: RE: Multiline statement in iocsh Saeed Haghtalab via Tech-talk
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  <20202021  2022  2023  2024 
ANJ, 15 Jan 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·