Skip to main content

All Questions

Tagged with
1 vote
1 answer
61 views

Bash: How to capture output of an "inner" tee in WSL

Currently, I am using the following (working) command in order to compress and encrypt some folders: backup_folders "${srcFolders}" - $@ | encrypt > "${targetFile}" ...
ahuemmer's user avatar
  • 2,023
0 votes
0 answers
27 views

How to combine child_process.spawn output with async pipeline while handling errors?

How to combine child_process.spawn output with async pipeline while handling errors? const fs = require('fs'); const { pipeline }= require('stream/promises'); const { spawn } = require("...
user3075373's user avatar
0 votes
0 answers
36 views

papparse how do I manage errors and retrieve meta information while pipeling?

I am parsing a CSV file using papparse streaming feature import fs from 'node:fs' import papa from "papaparse" const reader = fs.createReadStream(csvPath) .pipe(something)...
tit's user avatar
  • 619
0 votes
0 answers
44 views

Nodejs(v18) streming pipe

I need to stream a big video from an Amazon S3 bucket. Streming works fine when the user doesn't scrumble the video, but when the user scrumbles the video from 0:20 sec to example 1:00 I get an ...
Mili's user avatar
  • 81
1 vote
1 answer
264 views

fish `while read` blocks until stdin is finished while sh/bash computes immediately

Take the following sh/bash script: { echo abc sleep 2 echo def } | while read f; do echo $f "has been piped" done The block represents a command that slowly produces output ...
Post Self's user avatar
  • 1,558
1 vote
0 answers
89 views

Can we provide a raw stream of microphone data Unit8List as a Input to ffmpeg and save the output file as .wav or .mp3

The goal is to listen to a live microphone stream (don't want to store it locally)and try to pass it to the RTSP server or to a .mp3 or .wav file locally. FFmpeg lib :ffmpeg_kit_flutter Mic Stream lib ...
Uday's user avatar
  • 1,689
0 votes
0 answers
210 views

How to implement a custom stream in rust, such as TcpStream

How to implement a custom stream in rust, such as TcpStream, but not TcpStream. For example, the encrypted stream called MyStream below It can be used by pipelines use std::io; use std::io::{Read, ...
Hai.Xu's user avatar
  • 50
0 votes
1 answer
448 views

How to close a custom read/write stream in rust

Here is a readable and writable stream that I have implemented. I have used try_clone clones multiple times in multiple threads. How can I safely close this VirtualStream so that I can respond to HTTP ...
Hai.Xu's user avatar
  • 50
0 votes
1 answer
605 views

Why is the piped input stream closed?

I run a small Java 11 http server which processes multipart stream requests containing zipped data. The data is read and unzipped with piped streams. Sometimes IOException: Pipe closed occur, however ...
arweed's user avatar
  • 3
0 votes
1 answer
319 views

Pipe stream with a delay without loosing data

I try to pipe streams with a "delay". The problem is, as soon as the input stream receives data, and the pipeing is done, the data is lost and nothing received on the output stream. const { ...
Marc's user avatar
  • 3,836
0 votes
0 answers
582 views

Node readableStream that uses pipe needs a _read() method?

The following code is what I got from a tutorial page on Node Stream as a working example: const Stream = require('stream') const readableStream = new Stream.Readable() const writableStream = new ...
xpt's user avatar
  • 22.3k
1 vote
2 answers
183 views

How to read and format a stream of text received through a bash pipe?

Currently, I'm using the following to format data from my npm script. npm run startWin | while IFS= read -r line; do printf '%b\n' "$line"; done | less It works, but my colleagues do not ...
Pedro Gomes Branquinho  Facti's user avatar
1 vote
1 answer
459 views

Use KTOR as a pipe for simultaneously fetching and responding a file

I have a KTOR backend which serves as a broker between the frontend-client and an external REST API. I want to make KTOR fetch the chunks of a file from the REST API, and as it receives these chunks ...
Tmfwang's user avatar
  • 650
0 votes
1 answer
488 views

NodeJS flush function streams not working

I have this main file, with the goal to output the sum of profits for a country const { createReadStream } = require("fs"); const parse = require("csv-parse"); const csv = require(&...
T D's user avatar
  • 41
0 votes
1 answer
303 views

How can I pipe the output of a command to another server?

I would like to stream the output of a command from one server to a remote server (both linux servers, latest Ubuntu). In an ideal world, I would like to stream it over https to a webserver that has a ...
Ben Holness's user avatar
  • 2,615

15 30 50 per page
1
2 3 4 5
16