473,324 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Some kind of pipes in .NET?


Hi,
does anyone know any kind of class from the .NET framework
which works like unix pipes?

Thank you in advance,
Edgar
Nov 15 '05 #1
3 1698
"EdgarBM" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...

Hi,
does anyone know any kind of class from the .NET framework
which works like unix pipes?


Windows has NamedPipes. You have to create, and open a NamedPipe using
P/Invoke (CreateNamedPipe to create, CreateFile to open), but once you have
a handle to a pipe, you can use the FileStream(IntPtr...) constructor to
wrap it in a normal .NET IO.FileStream.

More generally .NET has Stream, which in a abstracttion for files, sockets,
etc.

David
Nov 15 '05 #2
Are you referring to NamedPipes such as IPC$ or piping
commands together using the '|' operator? If you are
looking for name pipes, read the previous post. As far as
I know .NET does not support piping commands. The only
language that I know that supports it is Perl and you can
install a Perl plugin into your .NET studio if piping is
that important to you.
-----Original Message-----

Hi,
does anyone know any kind of class from the .NET frameworkwhich works like unix pipes?

Thank you in advance,
Edgar
.

Nov 15 '05 #3
> Windows has NamedPipes. You have to create, and open a NamedPipe using
P/Invoke (CreateNamedPipe to create, CreateFile to open), but once you have a handle to a pipe, you can use the FileStream(IntPtr...) constructor to
wrap it in a normal .NET IO.FileStream.


I am sure I've seen a .NET wrapper for Windows Pipes on GotDotNet. It was at
least one year ago. You should be able to find it in the samples section.
--
WildHeart'2k3
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Christian Hammers | last post by:
Hello I would like to call a unix shellscript from within a PHP script and - write data to its STDIN - read data from its STDOUT *and* STDERR - get its exit code afterwards proc_open seems...
5
by: Peng Yuan Fan | last post by:
Hi, sorry if you found I have multi posted in different groups. It didn't appear in that group. I am trying to write an automated testing program with CxxTest, which in turn needs to talk to gdb...
9
by: Hans J?rg Brinksmeyer | last post by:
Hi, does anyone have an idea for this problem: I use anonymous pipes to steer a console program under Win2000 with a second 'steering aplication'. The stdin and output are redirected to...
1
by: arielCo | last post by:
Hello, I'm attempting to use proc_open to launch, control and log CLI applications from my scripts, but my first tests are disheartening: <pre> <?php $descriptorspec = array( 0 =>...
7
by: webmaster | last post by:
Sorry if this sounds naive, but I need to know how to create a two-way pipe between my Objective-C MacOSX program and another process, like perl, for example. Is there a simple way to do this in C,...
1
by: Jarrod Morrison | last post by:
Hi All Im looking for a way use named pipes between a service app and an app run when a user logs on and be able to pass string based data, im hoping that the service can contact the app that is...
3
by: toton | last post by:
Hi, I have some ascii files, which are having some formatted text. I want to read some section only from the total file. For that what I am doing is indexing the sections (denoted by .START in...
2
by: fahad.usman | last post by:
I am making an application in which if the second instance of the same application is launched, it checks its command-line arguments and passes them to the already running instance. I have been...
0
by: limweizhong | last post by:
I don't know why the following script intermittently crashes when I remove the sleep() call. I believe the pipes were not properly set yet before the shell statement was called, which used pipes...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.