命名管道 IPC

发布于 2024-08-09 12:41:59 字数 126 浏览 3 评论 0原文

我正在尝试创建一个管道以在两个进程之间使用来发送信息。这两个进程不相关,并且信号的实现存在一个问题:如果接收信号的进程正在执行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猫卆 2024-08-16 12:41:59

Perl 手册页 perlipc 讨论了一些有关使用命名管道的内容。

The perl man page perlipc talks a bit about using named pipes.

久光 2024-08-16 12:41:59

您没有提到有关您的项目的任何细节,因此这可能完全不符合您想要实现的目标,但是您是否考虑过将套接字实现为您的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文