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  <20122013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: procServ softIOC server - V2.6.0 released
From: Dirk Zimoch <dirk.zimoch@psi.ch>
To: Ralph Lange <Ralph.Lange@gmx.de>
Cc: EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Mon, 23 Apr 2012 15:00:01 +0200
Ralph Lange wrote:
  On 16.04.2012 18:44, Pavel Masloff wrote:
Ralph, when I try to start a bat file using procServ under Windows 7 then I get this:

/C:\Users\Maslick\Downloads>procServ -L test2.txt 50010 c:\epics\apps\LINAC\startIoc.bat procServ: Error - Please change permissions on c:\epics\apps\LINAC\startIoc.bat to at least ---x--x--x
procServ is not able to continue without execute permission/

How can I set the bat file to be executable? Its attributes say it's Full access (R,W).


Pavel,

on native Windows file systems, Cygwin has to fake the permission info for files. So, obviously, the calls return no x bits for batch files. (Which makes sense, in a way.)

I am usually starting the softIOC binary directly, which does not create such a problem. If you need to use a batch file, you might have to start command.com (which is a real executable) with the batch file as first argument. You could also try specifying command.com as the executable using the command line option.

Good luck!
~Ralph

ps. Please drop me a line if you get it working, so I can add the solution to the README.


Ralph,

Maybe you could modify checkCommandFile() for Windows so that it either checks for executable extensions (.com, .bat, .exe, more?) or always returns 0. I mean, what can really go wrong if you don't check in advance?

Dirk


References:
procServ softIOC server - V2.6.0 released Ralph Lange
Re: procServ softIOC server - V2.6.0 released Pavel Masloff
Re: procServ softIOC server - V2.6.0 released Ralph Lange
Re: procServ softIOC server - V2.6.0 released Pavel Masloff
Re: procServ softIOC server - V2.6.0 released Ralph Lange

Navigate by Date:
Prev: Re: RE: mrfioc2 compile error 송영기
Next: Control Engineer Job in SESAME ibrahim.saleh
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: procServ softIOC server - V2.6.0 released Ralph Lange
Next: RE: procServ softIOC server - V2.6.0 released Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·