Skip to main content

Questions tagged [pipe]

A pipe is an interprocess connection between file descriptors of two processes. A pipe is created with the POSIX pipe() function (from <unistd.h>). Shells create pipes between processes if the "|" symbol is used: "cmd1 | cmd2" directs the output of cmd1 to the input of cmd2. On Windows use CreatePipe(). This mechanism redirects standard input, standard output, and standard error into the calling process in .NET and Java.

2,558 questions with no upvoted or accepted answers
10 votes
0 answers
239 views

Advice needed for preventing file descriptor leaks in Raku

Background A while ago I wrote a Raku module to test out some ideas I had for making external process pipelines (e.g., grep raku | wc -l). I followed the traditional way of creating Pipes and setting ...
cowbaymoo's user avatar
  • 1,202
8 votes
2 answers
291 views

How to write to cygwin pipe from c#

I want to create a c# app that can be used in a cygwin pipe with "tail -f". i.e. tail -f SomeFile | MyCSharpApp I can see (from debugging) that I am able to read stdinput correctly, but nothing ...
ManInMoon's user avatar
  • 6,925
8 votes
2 answers
2k views

How to get the output from node-sass to postcss autoprefixer

How do I use the output from node-sass to pass through postcss autoprefixer. I'm not looking to use any webpack or gulp. I'm purely using the cli from the node packages This is my current npm ...
user2245534's user avatar
8 votes
0 answers
743 views

Read ffmpeg segment on stdout

I'm trying to segment a video file to play it in the browser. Ideally, I would like to read the stdout and pipe it to the browser, but if I enable segmentation it doesn't work: $ ffmpeg -i test.mp4 -...
Mascarpone's user avatar
  • 2,566
8 votes
1 answer
951 views

How to pipe a JVM heap dump

I want to heap dump on Linux, but I don't have enough local disk space to hold the multi-gigabyte heap dump. Instead, it will be posted to another server. <command> | curl -X POST -d @- http://...
Paul Draper's user avatar
  • 81.7k
8 votes
0 answers
1k views

ffmpeg not working with piping to stdin

I want to stream a file that is being uploaded to ffmpeg. I'm using node.js and it's not working! I ended up testing piping an input to ffmpeg from a local file, and this doens't work either. Here's ...
Guig's user avatar
  • 10k
7 votes
0 answers
2k views

Are the extra stdio streams in node.js child_process.spawn blocking?

When creating a child process using spawn() you can pass options to create multiple streams via the options.stdio argument. after the standard 3 (stdin, stdout, stderr) you can pass extra streams and ...
Bartvds's user avatar
  • 3,470
6 votes
0 answers
2k views

Jenkins pipeline sh: always use pipefail

Is there a way to configure sh step to always act as if set -o pipefail was set? This bug took me days to discover... since I assumed this would be the default setting.
wvxvw's user avatar
  • 8,932
6 votes
1 answer
6k views

Unexpected server response (0) while retrieving pdf

We are specifically getting this error when using Amazon ec2 instance. Configuration on aws instance is Tomcat 7, Ubuntu 16.04 and memory is 8gb. It occurs when the user tries to view pdf file. In our ...
Shantanu's user avatar
6 votes
1 answer
2k views

Running a Windows Batch File through Piping in Apache Spark

I have a requirement in which I have to run a Windows batch file using Apache Spark on multiple nodes of the Spark cluster. So is it possible to do the same using Piping concept of Apache Spark? I ...
Abhilash Awasthi's user avatar
6 votes
0 answers
2k views

How to use multiple checkbox to filter data in Angular 2

I'm creating a filter page with Angular 2. The data is being filtered depending on the checkboxes that are checked. This is the HTML <input required type="checkbox" name="checkbox" value="...
Facyo Kouch's user avatar
6 votes
1 answer
1k views

Chunk and pipe big amounts of data for client-site (browser) PDF generation

I'm trying to download HTML/JSON data from a webserver (Node.js) and convert it to PDF on the client-side. I wish to do the processing on the user's browser so my server don't get overloaded with pdfs ...
AFMeirelles's user avatar
6 votes
0 answers
763 views

Error setting option pix_fmt to value -1: Pipe a mp4 video with ffmpeg

I was piping a mp4 file and always got Error setting option pix_fmt to value -1. I was trying to put -pix_fmt option in front of '-i inputfile', as in the ffmpeg output I found a message: unspecified ...
Lewis Z's user avatar
  • 498
6 votes
0 answers
4k views

How do I get node.js zlib gunzip pipe to work?

I have a large .gz file (roughly about 100Mb in size), however, when I process the file using the following code, the outputted file is only 256k. var fs = require('fs'), zlib = require('zlib'); var ...
Paul's user avatar
  • 756
6 votes
1 answer
786 views

getting errors from FFMpeg when spawned from .NET

When I run FFMpeg from the command line like this ffmpeg.exe -hwaccel auto -re -i "C:\Users\Public\Videos\Sample Videos\Wildlife.wmv" -an -sn -c:v bmp -pix_fmt bgr24 -f rawvideo - > junk.bin it ...
Brannon's user avatar
  • 5,398

15 30 50 per page
1
2 3 4 5
171