Skip to main content
Filter by
Sorted by
Tagged with
2 votes
5 answers
99 views

Resequencing the rows of an R data frame using the native pipe

Minimal Example df <- data.frame(x = c(10, NA, 30, 40, 50), y = c(10, 20, NA, 40, 50)) df <- df |> na.omit() |> `colnames<-`(c("...
Thomas Philips's user avatar
1 vote
1 answer
80 views

Why does np.fromfile fail when reading from a pipe?

In a Python script, I've written: # etc. etc. input_file = args.input_file_path or sys.stdin arr = numpy.fromfile(input_file, dtype=numpy.dtype('f32')) when I run the script, I get: $ cat nums.fp32....
einpoklum's user avatar
  • 133k
-1 votes
1 answer
52 views

python pipes deprecated - interact with mpg123 server

I wrote some years ago an iTunes-replacing program in Python, with mpg123 accessed by a pipe (from the manual: -R, --remote: Activate generic control interface. mpg123 will then read and execute ...
alessandro's user avatar
  • 3,992
0 votes
1 answer
30 views

How to write data to a specific fd using Python Pwntools

I'm trying to use pwntools's process and to write a string to stdin and stderr I want to learn what is the correct way to achieve this behavior instead of trying to find weirds ways to do this myself (...
LavaTime's user avatar
1 vote
0 answers
27 views

Child process of cagefs_virtual_address_pipe transport returned 255 (could mean shell command ended by signal 127

I'm probably asking far too much, but I'm really stuck. I have an email piping script that works fine on PHP 7.4, but on PHP 8.2 I get the following error: Child process of cagefs_virtual_address_pipe ...
Edmund's user avatar
  • 75
1 vote
1 answer
23 views

Is there any way to show subprocess output in spyder console?

I'm computing neural networks with several .py files in spyder. I could sequencely execute them in spyder. However, the console do not show any thing like single file execution. For example, this is ...
yx feng's user avatar
  • 21
0 votes
2 answers
62 views

How can i pipe grep outputs to tcl stdin?

There are multiple answers on the same for python and perl but I am unable to find any example for tcl. Basically the intention is to read the output of grep into tcl procedure via pipe. I tried grep -...
kil47's user avatar
  • 83
2 votes
1 answer
45 views

Passing two named pipes as input to ffmpeg using python

I have two av streams, one video and one audio, i'm trying to pipe both as inputs to ffmpeg os.mkfifo(VIDEO_PIPE_NAME) os.mkfifo(AUDIO_PIPE_NAME) ffmpeg_process = subprocess.Popen([ "ffmpeg&...
Kikto's user avatar
  • 83
6 votes
1 answer
113 views

How to correctly parse system call execution times from strace output using pipes in C?

I'm working on an operating system programming assignment to understand pipes. textThe task involves using regular expressions to extract information from strace output and statistic system call ...
Julie Johnson's user avatar
3 votes
1 answer
48 views

How to have foreground tasks logged to stdout and a logger, background tasks only to the logger?

I'm trying to achieve the following: A script shall echo some strings and execute some fast returning commands and I want to see all it's stderr and stdout output on stdout and in syslog (using ...
maikelmeyers's user avatar
0 votes
0 answers
17 views

How to implement downloading logic on strapi?

I am trying to implement downloading file on strapi controller. I tried this. const path = "/records/xxxx.mp4" if (!fs.existsSync(path)) { console.log("file does not exist&...
shiro's user avatar
  • 148
-2 votes
2 answers
99 views

Process many files in bash while simultaneously updating a progress bar

I am trying to run a function once for each file from a large list that I am piping in. Here is some example code, here just grepping in the files whose names are coming from stdin. In my real code I ...
localhost's user avatar
  • 1,293
0 votes
1 answer
32 views

power query does not recognise #(cr)#(lf) in text string functions

I have a pipe delimited text file output from an App that has an Oracle back end. For some reason some rows of data have spurious carriage return/line feed characters in the middle of datetime field ...
grasshopper's user avatar
4 votes
1 answer
166 views

Secure way to forbid a function to write to stdout

(if you suspect a XY problem, see details of what I want to do below) I need a way to automatically test functions (written by students during an exam) to check that they are behaving correctly. The ...
tobiasBora's user avatar
  • 2,596
1 vote
0 answers
55 views

Program on ubuntu create pipe and use shell, but when i want send command for shell shell already closed

I have code client on c++, client works on ubuntu. When i create session ny bash closed. Why? In function SendCommand i see the info about shellPid but my shall pid is already closed May be problem in ...
DC Сomics's user avatar

15 30 50 per page
1
2 3 4 5
667