命名管道 IPC
我正在尝试创建一个管道以在两个进程之间使用来发送信息。这两个进程不相关,并且信号的实现存在一个问题:如果接收信号的进程正在执行 sys 命令,它会将信号解释为中断。 我是 Perl 新手,所以任何尝试让两个进程使用管道的帮助都会非常棒!
I am trying to create a pipe to use between two processes to send information. The two process are not related and implementation with signals has a problem where if the process that recieves the signal is doing a sys command it intreprets the signal as an intrupt.
I am new to perl so any help trying to have two processes use pipes would be really great!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Perl 手册页 perlipc 讨论了一些有关使用命名管道的内容。
The perl man page perlipc talks a bit about using named pipes.
您没有提到有关您的项目的任何细节,因此这可能完全不符合您想要实现的目标,但是您是否考虑过将套接字实现为您的 IPC 机制?再说一次,我知道这在您的特定项目上下文中可能没有意义,但它可能允许您创建一个能够通过网络(而不仅仅是一台机器)进行通信的流程。
You didn't mention any specifics as to your project, so this may be completely off of what you are trying to achieve but have you considered implementing sockets as your IPC mechanism? Again, I understand this may not make sense in the context of your particular project but it may allow you to create a process with the ability to communicate across a network instead of just one machine.