ipc - Interprocess communication in Unix/AIX -
is possible achieve inter process communication using terminal or serial ports in aix or unix?
i achieve using commands/scripting 1 process writes string on terminal , process reads same terminal , processes string. know using pipe possible not have enough idea on that.
also there way can determine ports/terminals available in aix machine? or possible create new terminal @ run time (not boot time) used above 2 processes?
i think want pty's? or, option unix domain sockets.
the answer first question "no"... not really. when write out tty, output sent out real device , not available read back.
the list of tty's on system is: lsdev -cctty
creating tty's @ run time possible not want either. tty child of serial port , can not add serial ports arbitrarily. real things. aix , power systems, can add devices while system (hot swap) getting (i'm assuming) way far off original topic.
the basic different between pty , unix domain socket pty mimics output , input process of real tty in 1 direction. telnet, rlogin, ssh, , many other daemons use when connections come in. easy make ksh believe has real tty using pty's. if don't need that, added trouble don't need. find link on how create , use unix domain socket , have need (or pipe pipe requires parent / child relationship assume not have).
Comments
Post a Comment