What I did for PI: In the script that starts the PI client I added a test for the presence of the FoxAPI progs. The count of 5 programs (-lt 5) includes the "grep foxapi" utility of course. while [ `ps -ef|grep foxapi|wc -l` -lt 5 ] do echo "Foxapi not running yet" sleep 10 done After this I run the PI start script. Simple but at least a bit conditional. You can make it more intelligent of course... Regards Ron Deen Senior System Service Specialist Invensys Systems N.V. Baarnsche dijk 10 P.O. Box 146 3740 AC Baarn The Netherlands T: +31 (0)35 54 84 233 F: +31 (0)35 54 84 175 Ron.Deen@xxxxxxxxxxxx www.invensys-systems.nl A P V * F o x b o r o * S i m S c i * T r i c o n e x * W o n d e r w a r e -----Original Message----- From: Johnson, Alex (Foxboro) [mailto:ajohnson@xxxxxxxxxxx] Sent: Monday, December 17, 2001 4:15 PM To: foxboro@xxxxxxxxxxxxx Subject: Re: [foxboro] FoxAPi FoxAPI should be started from /usr/fox/bin/fox_apps.dat. If you have additional startups in /etc/fox/user_apps.dat or /etc/fox/rc.foxapps nothing good will come of it. However, it is reasonable to place a /bin/sleep <sometime> in /usr/fox/bin/fox_apps.dat to ensure that FoxAPI has a chance to startup completely before any applications that use it. Regards, Alex Johnson System Products - Invensys Systems, Inc. 10707 Haddington Houston, TX 77043 713.722.2859 (office) 713.722.2700 (switchboard) 713.932.0222 (fax) ajohnson@xxxxxxxxxxx <mailto:ajohnson@xxxxxxxxxxx> -----Original Message----- From: Lowell, Tim: [SMTP:tlowell@xxxxxxxx] Sent: Monday, December 17, 2001 8:50 AM To: 'foxboro@xxxxxxxxxxxxx' Subject: Re: [foxboro] FoxAPi Jef, Try going to /opt/fox/ais/bin and typing in the command P (simply the capital letter P) at the Solaris prompt. It will print out all the FoxAPI-related applications that are currently running. You should have at least the following: /opt/fox/ais/bin/foxapi om_poll /opt/fox/ais/bin/foxapi /opt/fox/ais/bin/foxapi wrtimr /opt/fox/ais/bin/foxapi wrproc /opt/fox/ais/bin/histlnbc You may also have an_server.tcp running a few times, depending on if you have any special applications running. If you don't have these entries, FoxAPI is not really running. You should also check /usr/fox/bin/fox_apps.dat or /etc/fox/user_apps.dat to make sure FoxAPI starts on reboot. There should be an entry in one of those files that refers somewhere to aisstart, such as go_ADDE6. Tim Lowell Control Systems Engineer Phillips Petroleum Company, Trainer Refinery Phone: 610-364-8362 Fax: 610-364-8211 tlowell@xxxxxxxx -----Original Message----- From: jdesaeve@xxxxxxxxxxx [SMTP:jdesaeve@xxxxxxxxxxx] Sent: Monday, December 17, 2001 8:55 AM To: Foxboro@xxxxxxxxxxxxx Subject: [foxboro] FoxAPi Hi, I would like to write a C program using FoxAPI calls like an_add_objects, an_poll_changes,... However when I start my programs , it tells me "FoxAPI is not running-Please restart application after FoxAPI is started !" When I check with a ps command , FoxAPI is running ! We are using FoxAPI ver 4.2.0 (I/A series ver 6.2.1) Jef Desaever Protein Technologies Int Zwaanhofweg 1 8900 Ieper- Belgium ___________________________________________________________________ This list is neither sponsored nor endorsed by The Foxboro Company. Use the information obtained here at your own risk. For disclaimer, see http://www.thecassandraproject.org/disclaimer.html#maillist list info: //www.freelists.org/list/foxboro subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave ___________________________________________________________________ This list is neither sponsored nor endorsed by The Foxboro Company. Use the information obtained here at your own risk. For disclaimer, see http://www.thecassandraproject.org/disclaimer.html#maillist list info: //www.freelists.org/list/foxboro subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave ___________________________________________________________________ This list is neither sponsored nor endorsed by The Foxboro Company. Use the information obtained here at your own risk. For disclaimer, see http://www.thecassandraproject.org/disclaimer.html#maillist list info: //www.freelists.org/list/foxboro subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave ___________________________________________________________________ This list is neither sponsored nor endorsed by The Foxboro Company. Use the information obtained here at your own risk. For disclaimer, see http://www.thecassandraproject.org/disclaimer.html#maillist list info: //www.freelists.org/list/foxboro subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave