Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FIFO /Named Pipes in D?

Tags:

c++

d

I am trying to do the following :

A central application, let us call it alpha, accepts user inputs in command lines, and based on those inputs, spawns other processes, call them bravo, charlie, etc. I want the parent and child to communicate both way. That is, alpha can read from and write to bravo (resp. charlie) and vice-versa

In C++, i can use fork() then exec(), and use FIFO-s - some excellent tutorials, are here : Pipe, Fork, and Exec - Two Way Communication Between Parent and Child Process and http://pronix.linuxdelta.de/C/Linuxprogrammierung/Linuxsystemprogrammieren_C_Kurs_Kapitel5b.shtml

But, I am wondering if the same, is also possible in D? I dont find much from web searching.

like image 372
Sean Avatar asked Nov 18 '25 11:11

Sean


1 Answers

It looks like D's standard library supports creating pipes and child processes.

http://dlang.org/phobos/std_process.html

like image 124
Ben Voigt Avatar answered Nov 21 '25 02:11

Ben Voigt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!