Questions tagged [named-pipes]

A named pipe is an inter-process communication mechanism, which exists both on Unix and Unix-like systems (where it is also known as a FIFO and is file-like), and on Microsoft Windows (where it is an in-memory kernel object). The semantics and APIs differ substantially between the platforms.

Unix

On Unix and Unix-like systems a named pipe (also known as a FIFO for its behavior) is an extension to the traditional pipe concept, and is one of the methods of inter-process communication.

A traditional pipe is "unnamed" because it exists anonymously and persists only for as long as the process is running. A named pipe is system-persistent and exists beyond the life of the process and must be deleted once it is no longer being used. Processes generally attach to the named pipe (usually appearing as a file) to perform inter-process communication (IPC).

Windows

On Windows operating systems a named pipe is a named kernel object which provides duplex data transfers between two processes, a pipe server and a pipe client. Multiple completely independent instances of a particular named pipe object can be created, each connecting the pipe server to exactly one client. A pipe instance persists only as long as its server and client processes keep a handle referencing it.

Communication between the server and client via a pipe instance may be either stream-oriented or message-oriented.

1850 questions
0
votes
2 answers

Why does my shell script create a file named pipe?

I have this simple set up: pwd /home/abc/pipetest ls mydir pipetest.sh Now I do: ./pipetest.sh And then I get ls file.tar.bz2 mydir pipe pipetest.sh My question is: Why did the file named pipe get created? It contains some characters…
Ankur Agarwal
  • 23,692
  • 41
  • 137
  • 208
0
votes
0 answers

Named pipes - FIFO in c

I just want to test some programs which use named pipes. I found some examples but they don't work as I want. This code below works only when I open "myfifo" to read before opening to write. If I don't open to read before, it will create fifo, but…
Yakimget
  • 25
  • 4
0
votes
2 answers

Reading named pipe does not flush it

This is my first test on using unix named pipes. Below is a simple example which tries to read a given pipe every second and, on success, outputs "triggered" to stdout. Using a bash script I can write that value to the pipe which is read by the…
Bowdzone
  • 3,827
  • 11
  • 39
  • 52
0
votes
1 answer

is there a way to bcp SQL data, pipe it to 7z Compressor and then pipe it AZcopy without dumping to intermediate files?

The reason why I want to do this is we have a big table which is well partitioned and wanted to upload to blob storage very quickly by breaking down into multiple pieces using BCP, zipping it using 7z and upload it with AZCopy. Each thread handles…
HimalayanNinja
  • 421
  • 3
  • 11
0
votes
0 answers

How to represent bunch of files as one file on Windows for direct reading

I'd like to make one file representing (linking) bunch of files - something as on Linux named pipe do. The motivation is not to concatenate files (not to create the new one when I have originals and I want to keep them) so do not duplicate data. For…
d3im
  • 323
  • 2
  • 4
  • 18
0
votes
1 answer

Access security between Windows Services with NamedPipe

I have a C/C++ windows service implementation that is deployed on two different servers, using a NamedPipe so that they can communicate with each other. I followed the least privilege principle, assigning the service account to "NT…
CodeWeed
  • 971
  • 2
  • 21
  • 40
0
votes
1 answer

WCF Named Pipes timeout in a WinApp, but not in a ConsoleApp?

In relation to Async two-way communication with Windows Named Pipes (.Net) which seems dead (the thread that is) :/ I'm wondering why the following code works perfectly in a ConsoleApplications, but when I do exactly the same thing with…
0
votes
1 answer

Microsoft Internet Explorer run rights - pipe problem

i have some problems with pipe connecting from my microsoft explorer lsp layer to my server, form all other browsers its no problem, only in microsoft explorer. CreateFile allways finishes with error 5 - access denied. So are there any special…
Rampage
  • 245
  • 3
  • 14
0
votes
1 answer

Why do named pipes take unexpectedly long to connect to a local pipe server?

I am having problems with named pipes. When say 30 client pipes are all trying to connect at the same time, to a local pipe server, on a 4 core machine, I get a timeout or semaphore timeout. It sometimes, for the longest time, takes one second for…
PieterB
  • 21
  • 2
0
votes
1 answer

CallNamedPipe and TransactNamedPipe don't work

I want to send message to server and read it using named pipes. When I use WriteFile function, the message gets to the server, but TransactNamedPipe fails with error 230 (ERROR_BAD_PIPE) and CallNamedPipe fails with error 87 (INVALID_PARAMETER) or…
banana36
  • 395
  • 3
  • 16
0
votes
0 answers

Which technique is better Win32 Named Pipe or WinSock 2?

I have Visual C/C++ program which is going to communicate with other Programs(both local and Non-local) over the Intra-net(LAN).Previously I used win32 Memory Mapped Files/Events to communicate locally. Now I want to extend my program to support…
user7466998
0
votes
1 answer

Kernel pages that are swappable?

(Linux) Kernel pages are not swappable, I know that. But I recently learned about FIFO (named-pipe) and that it can resides on the disk. Those FIFOs are in kernel page? So can we say that a kernel page that includes a FIFO is swappable? Are there…
Mano Mini
  • 607
  • 4
  • 15
0
votes
1 answer

Write a single line from one process and consume a single line from another

I have a loop from python that writes proxies to a file, one per line. That file is later used from a bash script via curl -x $PROXY, line by line using cat proxies.txt. Could this approach be improved by launching the two scripts at the same time,…
Giuseppe Crinò
  • 486
  • 3
  • 15
0
votes
1 answer

Named pipe can't connect for second time

I have a client-server pipe processes, and when I try to connect at the first time, everything's OK, but when I start my client process again without restarting the server I cannot connect with PIPE_BUSY error, though GetOverlappedResult succeeds on…
banana36
  • 395
  • 3
  • 16
0
votes
1 answer

Access Singleton via Named pipe creates second singleton. Events not fired on host side

I have two processes and the second process needs to have access to a singleton in the first process. So I wrote a server that should help sharing the instance. Something is wrong though, it seems like the client gets its own version of the…
Johannes
  • 6,490
  • 10
  • 59
  • 108
1 2 3
99
100