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: Killing caRepeater on Windows 10
From: Michael Davidsaver via Tech-talk <[email protected]>
To: "Johnson, Andrew N." <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 13 Jan 2020 22:19:44 -0800
On 1/13/20 4:18 PM, Johnson, Andrew N. via Tech-talk wrote:
> On 1/13/20 6:12 PM, Michael Davidsaver via Tech-talk wrote:
>> Maybe the answer here is for caRepeater to borrow a page from *NIX daemons and "cd /" after startup?
>> (or rather "cd C:\")
> The latest already version does that, I added that recently but the CWD isn't the problem; Windows locks a file if a process is executing it. You can't delete the .exe until you kill the process.

Ha, right.  And trying to do anything clever about this, like copy to 'C:\temp' and exec,
would probably be flagged as malicious by AV.

> Mark, it would probably be easier to find if you explicitly start the CA Repeater as a separate process, instead of relying on a client or IOC start it automatically.

Has anyone ever spun caRepeater as a windows service?

https://docs.microsoft.com/en-us/windows/win32/services/svc-cpp


> - Andrew
> 
> 
>> On 1/13/20 3:52 PM, Mark Rivers via Tech-talk wrote:
>>> Folks,
>>>
>>>  
>>>
>>> One of the hassles with Windows is that you cannot delete or replace an executable or dll if any process is using it.  If an EPICS client or IOC is run on Windows it will launch a caRepeater process that runs in the background.  If you want to update your EPICS installation you must kill that caRepeater process before you can do so.
>>>
>>>  
>>>
>>> In Windows 7 I found that the caRepeater process always showed up in Task Manager, so it was easy to find and kill.
>>>
>>>  
>>>
>>> In Windows 10, however, caRepeater does not show up in the Task Manager, even though it is running and the executable file cannot be deleted.
>>>
>>>  
>>>
>>> I found a couple of solutions to finding and killing caRepeater without rebooting.
>>>
>>>  
>>>
>>> 1)      Use “tasklist” to find the PID of caRepeater
>>>
>>> tasklist /FI "imagename eq caRepeater.exe"
>>>
>>>  
>>>
>>> will show the PID of caRepeater, which "taskkill" can then kill.
>>>
>>>  
>>>
>>> 2) Microsoft has a nice "Process Explorer" application that is a more powerful version of Task Manager.  You can find it with Google and download it.
>>>
>>>  
>>>
>>> caRepeater shows up there, while it does not show up in Task Manager.  Note that in this case it is nested under PointGreyApp.exe, which is my IOC.
>>>
>>>  
>>>
>>>  
>>>
>>> I suspect perhaps the reason it is not showing up in Task Manager is that Task Manager may only be showing nested processes 2 deep, rather than 3 deep?
>>>
>>>  
>>>
>>> Mark
>>>
>>>  
>>>
> 
> -- 
> Complexity comes for free, Simplicity you have to work for.
> 


Replies:
Re: Killing caRepeater on Windows 10 Johnson, Andrew N. via Tech-talk
References:
Killing caRepeater on Windows 10 Mark Rivers via Tech-talk
Re: Killing caRepeater on Windows 10 Michael Davidsaver via Tech-talk
Re: Killing caRepeater on Windows 10 Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: Killing caRepeater on Windows 10 Johnson, Andrew N. via Tech-talk
Next: Re: Killing caRepeater on Windows 10 Žiga Oven 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: Killing caRepeater on Windows 10 Johnson, Andrew N. via Tech-talk
Next: Re: Killing caRepeater on Windows 10 Johnson, Andrew N. 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 ·