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.

0 votes
1 answer
37 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
40 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,623
3 votes
2 answers
100 views

Equivalent for pipe() in bash or other shell

In libc, there is an ability to create an (anonymous) pipe: https://man7.org/linux/man-pages/man2/pipe.2.html I am aware of mkfifo in bash and similar shells, and I am aware of the | which allows ...
Philip Adler's user avatar
  • 2,184
0 votes
1 answer
51 views

Using procmail to pipe to a php script, can I add a variable to be checked [closed]

I have a procmail script set up which pipes to a PHP script when an email subject line matches: :0 * ^[email protected]|^Subject.*(REMOVE|Undelivered Mail) | /usr/bin/php -f /var/www/somefolder/...
jamminjames's user avatar
2 votes
1 answer
52 views

Broken pipe passing Python output to C++ input due to size

I'm trying to transform an image into a matrix of it's rbg values in c++, i really like the simplicity of PIL on handling different images extensions, so i currently have two codes from PIL import ...
Leonardo Dantas's user avatar
1 vote
1 answer
39 views

Named Pipe security problem on some Windows clients

I'm using named pipe for a communication inside a C# process. The software is used on different Windows PCs. On some PCs my software is working and on some I get the following error: "Some or all ...
Michael's user avatar
  • 203
1 vote
1 answer
67 views

How to get available data in a pipe in linux

In Linux, after writing some data in a pipe (yet not read), when using fstat on read/write side of a pipe, the st_size field is zero. Is it possible to get the size of data available in a pipe? Sample ...
tahzibi.jafar's user avatar
0 votes
0 answers
41 views

Is there a Flutter equivalent of the pipes in Angular?

I am learning Angular, and I have discovered pipes, which not only seem very useful but should also be much more RAM-efficient than functions for data transformation. Is there an equivalent of Angular ...
Pandruz's user avatar
  • 427
0 votes
0 answers
23 views

Read file contents from stdin in radare2

I want to programmatically use radare2 via r2pipe, but instead of the usual method of opening files via their filepath: $ python3 >>> import r2pipe >>> r2 = r2pipe.open('/bin/ls') &...
Alexandru Dinu's user avatar
1 vote
1 answer
63 views

Why is command listing delaying the control release of a subshell?

In Bash, running the following: ( sleep 50 > /dev/null 2>&1 &) && exit 0 exits before my human eye can even notice. But if I list commands within the group ( sleep 50 &&...
Ar3s's user avatar
  • 2,277
0 votes
0 answers
26 views

Node.js: Pipe data parsed from "zlib.createGunZip" and "tar.extract" to custom transform function

I am using packages "tar-stream" and "zlib" to extract files from a TGZ file. Is there a way to send data to a custom Transform function ? "tarStream.extract()" doesn't ...
Georges R's user avatar
0 votes
0 answers
26 views

Powershell GUI Array of ProgressBar

How can I change the values of the ProgressBar's after they have been created? I dont speak english well. Sorry for the translation... `Add-Type -AssemblyName System.Windows.Forms [System.Windows....
Bernhard's user avatar
1 vote
4 answers
54 views

define condition while piping a tibble

Is there any way to define a condition so as I can use it several time while piping a tibble? data <- tibble(age = c(25, 30, 18, 40), income = c(50000, 70000, 35000, 80000)) filter_condition <- ...
fred's user avatar
  • 9,990
0 votes
1 answer
35 views

Merge dataframes with unequal lengths and substituting 0 for values that are not present [duplicate]

I have two data frames of unequal length, one data frame contains a subset of dates of the first data frame and they each have different columns: Data Frame 1: structure(list(date = structure(c(19241, ...
Ryan Gary's user avatar
  • 141

15 30 50 per page