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

Subject: RE: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory
From: Mark Rivers via Tech-talk <[email protected]>
To: 'Valentyn Stadnytskyi' <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Mon, 18 Nov 2019 13:31:52 +0000

Hi Valentyn,

 

I am not sure what your problem is, but I cannot reproduce it.  I copied your st.cmd from the message below and pasted into a new file st2.cmd in the iocBoot/ioctestIoc directory.  That contains {} rather than () characters as you said.  I then executed the following 2 commands that worked fine:

 

corvette:testIoc/iocBoot/ioctestIoc>chmod u+x st2.cmd

corvette:testIoc/iocBoot/ioctestIoc>./st2.cmd

#

#!../../bin/linux-x86_64/testIoc

< envPaths

epicsEnvSet("IOC","ioctestIoc")

epicsEnvSet("TOP","/home/epics/EPICS/TEST/testIoc")

epicsEnvSet("EPICS_BASE","/home/epics/EPICS/epics-base")

cd "/home/epics/EPICS/TEST/testIoc"

## Register all support components

dbLoadDatabase "dbd/testIoc.dbd"

testIoc_registerRecordDeviceDriver pdbbase

## Load record instances

dbLoadTemplate "db/user.substitutions"

dbLoadRecords "db/testIocVersion.db", "user=femtoland"

dbLoadRecords "db/dbSubExample.db", "user=femtoland"

#var mySubDebug 1

#traceIocInit

cd "/home/epics/EPICS/TEST/testIoc/iocBoot/ioctestIoc"

iocInit

Starting iocInit

############################################################################

## EPICS R7.0.3.2-DEV

## Rev. R7.0.3.1-18-g3c0d4ccf4931b696c82a

############################################################################

cas warning: Configured TCP port was unavailable.

cas warning: Using dynamically assigned TCP port 34504,

cas warning: but now two or more servers share the same UDP port.

cas warning: Depending on your IP kernel this server may not be

cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)

iocRun: All initialization complete

2019-11-18T07:25:27.175 Using dynamically assigned TCP port 42679.

## Start any sequence programs

#seq sncExample, "user=femtoland"

 

So the error you are getting does not appear to be due to the {} characters, but some other problem?

 

Mark

 

From: Valentyn Stadnytskyi <[email protected]>
Sent: Sunday, November 17, 2019 9:40 PM
To: Mark Rivers <[email protected]>
Cc: Michael Davidsaver <[email protected]>; [email protected]
Subject: Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory

 

Thank you Mark!

 

On a similar note:

If one does everything according to these instructions from https://epics-controls.org/resources-and-support/documents/getting-started/

mkdir -p $HOME/EPICS/TEST/testIoc
cd $HOME/EPICS/TEST/testIoc
makeBaseApp.pl -t example testIoc
makeBaseApp.pl -i -t example testIoc
make
cd iocBoot/ioctestIoc
chmod u+x st.cmd

You get a st.cmd file with curly brackets instead of parenthesis for {TOP} and {IOC}. I don’t know where this is generated and where to report the bug. See the file below. This is minor but for someone who does it for the first time and never seen EPICS shell but be a big slowdown.

 

~/EPICS/IOCs/testIoc/iocBoot/ioctestIoc$ more st.cmd

#!../../bin/linux-x86_64/testIoc

 

#- You may have to change testIoc to something else

#- everywhere it appears in this file

 

< envPaths

 

cd "${TOP}"

 

## Register all support components

dbLoadDatabase "dbd/testIoc.dbd"

testIoc_registerRecordDeviceDriver pdbbase

 

## Load record instances

dbLoadTemplate "db/user.substitutions"

dbLoadRecords "db/testIocVersion.db", "user=femtoland"

dbLoadRecords "db/dbSubExample.db", "user=femtoland"

 

#- Set this to see messages from mySub

#var mySubDebug 1

 

#- Run this to trace the stages of iocInit

#traceIocInit

 

cd "${TOP}/iocBoot/${IOC}"

iocInit

 

## Start any sequence programs

#seq sncExample, "user=femtoland"

-----------------------------------

Valentyn Stadnytskyi

 

 

 



On Nov 17, 2019, at 9:27 PM, Mark Rivers <[email protected]> wrote:

 

I helped Valentyn fix this today. It was a simple problem with testIoc vs testIOC. Changing the case fixed it.

Mark

Sent from my iPhone


On Nov 17, 2019, at 9:17 PM, Michael Davidsaver via Tech-talk <[email protected]> wrote:


On 11/17/19 12:06 PM, Valentyn Stadnytskyi via Tech-talk wrote:
:~/EPICS/epics-base/test/testIoc/iocBoot/ioctestIoc$ ./st.cmd
-bash: ./st.cmd: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory


What happens if you instead run the following from the same directory?


$ ../../bin/linux-x86_64/testIOC st.cmd

 


References:
../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Valentyn Stadnytskyi via Tech-talk
Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Michael Davidsaver via Tech-talk
Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Mark Rivers via Tech-talk
Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Valentyn Stadnytskyi via Tech-talk

Navigate by Date:
Prev: RE: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Mark Rivers via Tech-talk
Next: RE: Uploading a file with SFTP from an EPICS driver Mark Rivers 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Johnson, Andrew N. via Tech-talk
Next: string conversion to uppercase or lowercase Jeong Han Lee 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  <20192020  2021  2022  2023  2024 
ANJ, 18 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·