This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

How to share file descriptor between scripts
#3
Each script is a separate OS process. File descriptors are private for each process and cannot be shared.

Can you explain your task? Are you trying to share access to the same RS-485 port between several scripts? You can use semaphores (http://openrb.com/docs/semaphore.htm) for locking or just create a profile and use modbus mapper which will take care of data exchange.
Reply


Messages In This Thread
RE: How to share file descriptor between scripts - by admin - 11.03.2016, 08:03

Forum Jump: