J. R. Mauro wrote:
Unfortunately, you can't. It's one of the design flaws of Unix. You might be able to wrap it with a FUSE filesystem. But sockets and FIFOs are unfortunately "special"
FIFOs do exist in the filesystem (see mkfifo(3)), but they're only unidirectional. If you want bidirectional, either need a pair of FIFOs, or as a bit of a hack, you could have your external process open up a unix socket and write the fd number and it's PID into some pre-arranged file (say, /tmp/<username>/eagle/socket_location). Your script could then open that file, and use the information to construct a path to /proc/<PID>/fd/<fd> and access the socket as a file that way. Or, I suppose you could simplify the script side by making that pre-arranged file into a symlink to /proc/<PID>/fd/<fd>. Scott