Questions tagged [named-pipe]

33 questions
31
votes
3 answers

In windows, can I redirect stdout to a (named) pipe in command line?

Is there a way to redirect the standard output of a process in Win32 console to a named pipe? Named pipes are built in to Windows and while they would be an useful concept, I've never seen them used from command line. Ie. like example.exe…
n611x007
  • 6,566
  • 15
  • 67
  • 91
9
votes
3 answers

Use netcat as a proxy to log traffic

I want to use netcat as a proxy to log http requests and responses to files, then tail these to inspect traffic. Think wireshark. Tried the following where 'fifo' is a named pipe, 'in' and 'out' are files, netcat proxy on port 8080, server on port…
deephacks
  • 191
7
votes
1 answer

How long do FIFOs (named pipes) stay "open" for?

For example, I have a script that writes the time to a pipe in /etc/pipe. It writes continuously in a while true loop. How long will the data in the pipe be available for reading? If I only decide to read the pipe a day later with cat /etc/pipe,…
nopcorn
  • 16,982
5
votes
1 answer

How many ways does Unix feign files?

I know Unix filesystem sometimes has things that appear to be files but are not actually files. The files in dev actually point to devices. Its also possible to created named pipes which also appear to be files but are actually fifo message queues…
M. Lanza
  • 467
  • 5
  • 10
4
votes
2 answers

Keeping bash open on a named pipe

I'm looking to send commands to a separate tmux pane from vim and I figured the easiest way was to mkfifo a named pipe /tmp/cmds and run bash < /tmp/cmds to listen for commands to run. I then do echo "echo \"hello world\" > /tmp/cmds" as test, this…
4
votes
1 answer

named pipes apparently not working/responding?

I am trying to use named pipes as a convenient way to preprocess input on the fly for pipelines that sadly do not accept data from stdin directly. everywhere I look for info I get basically the same gist: Named pipes should be dead simple to…
jov14
  • 65
4
votes
0 answers

Create a symbolic link to a named pipe

Let's say some application exposes a named pipe with the name "Pipe1". If I want to express the named pipe as a file path that can be used for writing or reading, the path \\.\pipe\Pipe1 or \\?\pipe\Pipe1 is valid and points to the named pipe. Now…
IS4
  • 1,490
3
votes
1 answer

How do I feed FFMPEG with JPEG images via Named Pipe?

Normally you can feed FFMPEG with images from the file system using -f image2, but this doesn't work when you have a named pipe as input: FFMPEG complatins that "index in the range 0-4" could not be found. Obviously FFMPEG wants to have images named…
nepa
  • 205
3
votes
0 answers

Using a named pipe to simulate a serial port on a VMware virtual machine (linux host and client)

Trying to write a python program to create a simulated data stream and feed it, through a named pipe, to a VMware virtual machine. The host is running Ubuntu 11.10 and VMware player 5.0.0. The Vm is running Ubuntu netbook 10.04. I am able to get the…
Dave M
  • 71
3
votes
1 answer

How to "tail" multiple pipe files or streams?

I need to monitor a lot of web servers for runtime errors and I have an idea of running a script like #!/bin/bash -e # Example set of hosts HOSTS=( host1 host2 ) for host in ${HOSTS[@]} do [[ ! -e ${host}.pipe ]] && mkfifo ${host}.pipe …
2
votes
2 answers

Linux job queue for FFmpeg conversion

I'm starting up a Debian web server which will host a website where users can upload video files and play them. Hence, the video files need to be converted into the proper format (mp4, ogg, webm) for compatibility with the different browsers out…
2
votes
1 answer

how to convert a script using pipelines to named pipes

I have a bash script that is using anonymous pipes to achieve: grabbing video from dv capture device writing to a file (using tee) piping it to ffmpeg2theora (converting to ogv/theora video) writing to a file (using tee) piping it to oggfwd in…
Luka
  • 21
2
votes
1 answer

IO redirection with mkpipe for logging purposes

I have a bunch of scripts that send output to stdout. I am redirecting the output to files, but these files get large very very quickly. For example: ./script_with_lots_of_outpu.sh 2>&1 mylog.txt & I would like to send the output to a named pipe…
Hersheezy
  • 175
2
votes
4 answers

ffmpeg waits to close the pipe in order to start processing data

I'm struggling with the following issue, on a Windows system: I get a live stream from an SDK; I get chunks of bytes via a callback; the container is MPEG-PS I have to display this live stream to the end-user using VLC. But VLC cannot play this…
2
votes
0 answers

Is fifo pipe size limited by disk cache allocated space?

On Linux CentOS 7 I am using named fifo pipes created with mkfifo to handle data passing between pairs of processes running on a multiprocessor disk server (Dell R730xd with 132GB RAM and 20TB RAID disk). In order to have some data buffer between…
1
2 3