Skip to main content

Questions tagged [streams]

In computer networking, STREAMS is the native framework in Unix System V for implementing character devices.

0 votes
2 answers
48 views

I want to send a file to a TCP server, keep the TCP connection open, wait (couple of seconds) for the response, and send the response to stdout. I don't want the connection to be (half) closed ...
filo's user avatar
  • 205
1 vote
1 answer
2k views

I have a number of video files (500+) with lots of audio and subtitle streams for languages that I don't need and would thus like to remove to conserve storage space. I tinkered around with ffmpeg, ...
KTorrentNG's user avatar
1 vote
2 answers
115 views

I'm trying to concatenate multiple input files/streams into one stream (using the imaginary command stream-cat), pipe that stream into ssh and on the remote host separate it back into individual files/...
David Scherfgen's user avatar
14 votes
2 answers
2k views

It's well known that redirecting standard output and error to the same file with cmd >out_err.txt 2>out_err.txt can lead to loss of data, as per the example below: work:/tmp$ touch file.txt work:...
Sweet Shell O'Mine's user avatar
0 votes
1 answer
1k views

Tried ping between computer's static IP's connected by router (General failure). Therefore UDP direct connection attempts went nowhere. Tried using ffplay and pulse to stream audio, but Debian 8 is ...
DaFuze's user avatar
  • 1
0 votes
1 answer
948 views

I know that the stream for file descriptor 2u is stderr. However, I'm not sure what the stream for file descriptor 3u would be and why? Ultimately, what does 3u represent here?
user avatar
3 votes
0 answers
3k views

There is an example that streams a webcam to another computer by piping a V4L2 stream into netcat (v4l2-ctl --stream-to - | nc <host> <port>), and this works, but it feels redundant when ...
Alex's user avatar
  • 131
1 vote
1 answer
60 views

Conceptually, a stream is a sequence of "characters" or "atoms", i.e. a binary stream is a sequence of 0s and 1s. But in Linux standard streams, if I write a bash script that asks &...
user56834's user avatar
  • 137
2 votes
2 answers
893 views

The so-called "standard streams" in Linux are stdin, stdout, and stderr. They must be called "standard" for a reason. Are there non-standard streams? Are those non-standard streams ...
user56834's user avatar
  • 137
1 vote
1 answer
308 views

Hopefully this question isn't too abstract, it touches on a bunch of software throughout the stack. We all know about /dev/stdin, /dev/stdout, and /dev/stderr. What if I wanted to create a new ...
Alex Davies's user avatar
1 vote
1 answer
97 views

I have a script that loops over some big collection of data and performs some lenghty operations. Then i need to sort | uniq -c its output. So to let it know that its alive, I print a dot every N ...
murison's user avatar
  • 163
1 vote
2 answers
2k views

I'm trying to spawn a new terminal, execute a few commands and pipe their output to stdin of the original process. A mwe of what I'm trying to do is the following bash one-liner: $ xterm -e sh -c &...
noibe's user avatar
  • 417
0 votes
1 answer
644 views

I have dd from GNU coreutils 8.32. When I run { echo a; sleep 1; echo b; } | dd bs=4 count=1 then I get a 0+1 records in 0+1 records out 2 bytes copied, 2.0381e-05 s, 98.1 kB/s dd terminates during ...
Socowi's user avatar
  • 645
1 vote
1 answer
287 views

What explains the following inconsistency in the reported contents of /dev/fd? erhannis@mnode6:/dev/fd$ ll /dev/fd/ total 0 dr-x------ 2 erhannis erhannis 0 Jan 12 22:10 . dr-xr-xr-x 9 erhannis ...
Erhannis's user avatar
  • 249
3 votes
1 answer
1k views

Take the following Bash script 3-output-writer.sh: echo A >&1 echo B >&2 echo C >&3 Of course when ran as . 3-output-writer.sh it gets the error 3: Bad file descriptor, because ...
Sinus tentaclemonster's user avatar

15 30 50 per page