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 votes
0 answers
38 views

Using Pipes for Stream Data in FFMPEG

I am trying to input stream and decrease the bitrate of the video without saving it anywhere so i am hoping to pass it as a stream and get the output as a stream and send it to digital ocean spaces to ...
Aryan Kumar's user avatar
0 votes
1 answer
50 views

imagemagick pipe to ffmpeg

I'm trying to write a batch file for a friend to make timelapse videos. I'm using avisynth, but she's even more clueless than I, so I tried to do most of the work with ffmpeg. What I'd like to do is ...
user26389289's user avatar
0 votes
0 answers
14 views

MIT6.828: Why do I get a pagefault when I use pipe the first time in my xv6 operating system?

I am now self-learning mit6.828, this course is about studying operating system xv6. This system boot with initiating memory system, user environment system, trap system ,multiprocessors and a file ...
Kesu's user avatar
  • 1
1 vote
0 answers
48 views

execve system call returning an unexpected output

So I've been working on a mini project in C about piping and processes in Linux. A program is executed like this: ./a.out "file1" "cmd1" "cmd2" "file2" It ...
Igor Mićović's user avatar
2 votes
0 answers
30 views

Python Multiprocessing with Pipe: Subprocesses sleep forever when training deep reinforcement learning agent with no error raised

I was using Pytorch-based Deep Reinforcement Learning (DRL) agent to train the environment with Multiprocessing package to train in multiple processes (thanks to the renowned elegantrl framework). To ...
Kevin_zt's user avatar
-2 votes
0 answers
62 views

C++: Why does `assert(pipe(stdin_fd) == 0)` set file descriptors to zero? [duplicate]

I am writing C++ code for inter-process-communication, where I create pipes to exchange data between parent and child (created using fork()) processes. I declare file descriptors for setting up pipes ...
Thamme Gowda's user avatar
  • 11.6k
0 votes
0 answers
37 views

capture hash value from git log --oneline --graph using regex [duplicate]

When running git log --oneline --graph you can get something like this * 7e5dbb0 Merge |\ | * c873a96 My | * f5817ba Amazing * | f6a34ac Feature |/ * f5a51ce Other stuff I want to take that and ...
Net-worker's user avatar
-1 votes
0 answers
38 views

Tomcat: Too many files open. FIFO pipes

I have this problem for a while now with one of my tomcat server running an java application. When I start the tomcat it slowly starts opening this kind of pipes java 10329 tomcat 427u a_inode ...
Stoian Dardzhikov's user avatar
1 vote
0 answers
62 views

Handling Large Text Files with Pipes in C: Minimizing and Debugging a Word Frequency Counter

This program is a minimized version of a larger project that processes text files to generate CSV output with word frequencies. The full version works well for small to medium-sized files but ...
iPc's user avatar
  • 53
0 votes
1 answer
44 views

Why isn't ERRORLEVEL giving the correct value in my batch file

I am trying to write a batch file that will test all local groups and report if a user belongs to the group. Here is my code: echo off setlocal enabledelayedexpansion for /f "tokens=*" %%G ...
DazedAndConfused's user avatar
3 votes
1 answer
67 views

Why do I get different outputs for calling "replicate" with and without pipe "%>%" in R?

I want to generate a character vector with 20 elements, each has a random string. So I generate a random string with the following code: sample(x = c(letters, LETTERS), size = sample.int(100, 1), ...
Alireza Sadeghi's user avatar
-2 votes
1 answer
44 views

I am getting this error Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1252'> OSError: [Errno 22] Invalid argument

I cat some logfiles into a python script which I then pipe into head as follows: cat *mongodb.log.* | python jsonFetcher.py -b 20240101000000 -e 20250101000000 | head the output is as follows, I am ...
Dennis's user avatar
  • 100
0 votes
1 answer
34 views

Can't communicate between different levels of admin privileges using named pipes in .NET 8

I have a program which is composed of a Windows Service and a GUI. The windows service runs under a local system account, and the GUI runs on a user account and receives information about the service ...
haxonek's user avatar
  • 181
0 votes
2 answers
39 views

Angular 15, .pipe .subscription response modifications

let data = { ticketId: id }; this.apiService .call("tickets", "/detail", "GET", true, data, null) .pipe(first()) .subscribe( (data) => { data = this....
Lokesh Lokhande's user avatar
0 votes
0 answers
37 views

how to expand a string in bash so that it evaluates to a pipeline [duplicate]

Suppose I have the following variable in a bash script cmd='echo hi | wc'. Since I forgot how many characters are in the string "hi", I want to run cmd. I expected this be as simple as ...
Mark VY's user avatar
  • 1,593

15 30 50 per page
1
2 3 4 5
664