Experimental Physics and
| |||||||||||||||||
|
I can't answer the why or if should be needed. Here is how I start it, if needed, in my main C-program. (C-code) to automatically detect if caRepeater is already running. If is running, then stop it, then start it, ensures a new copy is running. If not running, then start it. I have to start caRepeater on a hybrid system where I have EPICS 3.14.5 on a Linux PC and EPICS 3.1.2 on the IOCS used in transitioning to EPICS 3.14.5. /* ============================================================ */ /* Start "caRepeater" for EPICS-3.14.x on Linux 06-05-03 07-10-03 [email protected] 1. If running, then first kill "caRepeater" 2. Start "caRepeater" */ int returnCode; printf ("\n"); returnCode = system ("date"); returnCode = system ("(ps -elf | awk '{print $15,$4}' | grep caRepeater) "); if (returnCode == 0) { fprintf (stdout, "Killing old running 'caRepeater'\n"); returnCode = system ("(ps -elf | awk '{print $15,$4}' | grep caRepeater) | kill -9 `aw k '{print $2}'`"); } fprintf (stdout, "Starting '/usr/local/epics/bin/linux-x86/caRepeater &'\n"); returnCode = system ("/usr/local/epics/bin/linux-x86/caRepeater &"); returnCode = system ("(ps -elf | awk '{print $15,$4}' | grep caRepeater) "); /* ============================================================ */ Simon Rees wrote: Dear allBilly Adams <mailto:[email protected]> Sverdrup NASA/Langley ROME Group Assigned to: Research Facilities Branch of Research Facilities Services Competency Building 1251, Room 126D NASA Langley Research Center Hampton, Va. 23681-2199 Phone 1-757-224-7858 Fax 1-757-224-7870
| ||||||||||||||||
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |