Skip to main content

Questions tagged [streams]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
61 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
116 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
949 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
61 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
900 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
645 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
289 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
3 votes
1 answer
314 views

I am kinda new to Linux. My base issue: I need to show the output of curl cheat.sh/python like a man or less page, so that I can easily scroll up and down. What have I tried: curl cheat.sh/python | ...
Midhunraj R Pillai's user avatar
2 votes
1 answer
9k views

I know thats a pretty dumb question but I didn't found this precise question on internet I try to tar -cvjf all the contents of a directory (/*) and directly redirect that to a file (> file) but ...
wxi's user avatar
  • 189
3 votes
1 answer
436 views

I'ld like to hide ugly data from being shown by command line tools like cat (and maybe simple text editors too) which often get confused by binary data. For example a VT100 terminal sometimes gets ...
Pinke Helga's user avatar
0 votes
0 answers
39 views

I had been doing some work with an old SVR4 box with serial i/o when I found that the driver for the serial card did not support TIOCMGET through an ioctl call (e.g. ioctl(fd, TIOCMGET, &arg);). ...
mackbw's user avatar
  • 1
5 votes
2 answers
2k views

A paragraph from APUE Chapter 5.4 about line buffer: Line buffered. In this case, the standard I/O library performs I/O when a newline character is encountered on input or output. This allows us ...
Focus's user avatar
  • 171
5 votes
2 answers
6k views

Let's say that there is one huge db.sql.gz of size 100GB available https://example.com/db/backups/db.sql.gz and the server supports range requests. So instead of downloading the entire file, I ...
bravokeyl's user avatar
  • 153
1 vote
1 answer
2k views

I have try to use ffmpeg to download youtube media in mp3. ffmpeg -i <url> -f mp3 output.mp3 It's working with other urls, but not with youtube-dl retrived youtube video urls. Ffmpeg returns ...
edadam's user avatar
  • 23
3 votes
2 answers
1k views

I need to determine the filetype on an indeterminate number of base64-encoded filestreams coming from stdin (image files base64-encoded and cat'ed). A single file would simply be ... | base64 -d | ...
Nick Coleman's user avatar
1 vote
1 answer
45 views

Say I ramify a video stream to 2 ffplay processes cat video.mp4 | tee >(ffplay -i -) >(ffplay -i -) > /dev/null Now, if I kill one of the ffplay process, the stream is stopped which is not ...
user123456's user avatar
  • 5,288
3 votes
2 answers
721 views

The POSIX.1-2008 XRAT rationale states that X/Open STREAMS may be removed from future versions of the standard, and that strictly conforming applications shouldn't use them, but it doesn't explain why....
osvein's user avatar
  • 209
1 vote
1 answer
3k views

I would like to pipe a text file with commands to a telnet session I have open on a ssh client, Is this possible? an example: I have a text file cmds that contains commands like FirstFunction(A,B,C,...
stdcerr's user avatar
  • 2,109
2 votes
1 answer
362 views

Let's have any stream of binary data (like /dev/random, /dev/zero, etc.). Let's have a file which size can be N at maximum. Let's the N is in order of gigabytes. Is there any elegant method/technology-...
sharpener's user avatar
  • 145
4 votes
3 answers
2k views

I usually use command1 | command2 | command3 a lot in Linux but most of them are dealing with definite content. When I tried this with an infinite stream cat | sed '' | sed '' which hopefully ...
Nishant's user avatar
  • 673
6 votes
1 answer
2k views

Why does the following not output "hello" line? watch bash -c 'echo hello' As this one? watch 'echo hello' I expected to have echo write to bash output directly and this to be read by watch and ...
sevo's user avatar
  • 1,257
24 votes
3 answers
30k views

I have a device under test (DUT) and I measure its power usage the using a Power Analyzer Datalogger using the data from /dev/ttyUSB0. The problem is that the DUT is now remotely from the workstation ...
Eduard Florinescu's user avatar
25 votes
4 answers
18k views

I am putting together a presentation for a non-technical audience. I have a program running in bash that outputs a continuous stream of values, a few of which are important. I would like to highlight ...
P Jones's user avatar
  • 363
3 votes
3 answers
2k views

I encountered a problem the other day while running multiple tty sessions in separate terminal windows. I was running a expensive disk access command and was waiting for it to return. Meanwhile I was ...
111---'s user avatar
  • 4,673
8 votes
2 answers
8k views

stdin, stdout, stderr are some integers that index into a data structure which 'knows' which I/O channels are to be used for the process. I understand this data structure is unique to every process. ...
KawaiKx's user avatar
  • 465
0 votes
1 answer
3k views

I searched on Google, but found nothing useful. I use SUSE now, how can I install LiS on my computer? I'm hoping for a download link.
Lidong Guo's user avatar