All Questions
27
questions
0
votes
1
answer
249
views
Broken pipe, write error: An epidemic of unnecessary output
In the last few months, a problem has been spreading across my systems. That of broken pipe errors:
# Solution:
# silenced by replacing /bin/bzip2 -> bzip2-reference
# to /bin/...
0
votes
0
answers
12
views
Why does tailing logs with kubectl prevent pipe from producing output? [duplicate]
I'm trying to process logs while tailing them.
This command works:
kubectl logs "$pod" --tail=100 | egrep pattern | cut -d ' ' -f 1
But this command produces no output:
kubectl logs "$...
1
vote
1
answer
200
views
How does a Unix program know to change output if it's being piped?
Calling something like ag (a grep alternative) results in an output that's human readable. Results are printed with headers. Useful for humans, horrible for programs.
$ ag 'filter\('
tests/...
1
vote
1
answer
253
views
"Upload" pipe as if it were a regular file
Suppose I want to tar and compress a file for upload to Google Drive or something, but all without ever saving an intermediate tarball (e.g. because of a lack of disk space and/or the disk is read-...
1
vote
1
answer
627
views
Input pipe for ar
While extracting a deb file, the simple curl pipe to ar is not working. I tried
curl http://example.com/path/to/package.deb | ar -xv -
and
curl http://example.com/path/to/package.deb | ar -xv
...
2
votes
1
answer
2k
views
I am having trouble understanding pipes and their implememnation in xv6
I am studying Operating Systems on my own from the MOOC lectures available online and wanted to work on xv6. I was reading the Documentation on xv6 and in chapter 0 when it is talked about pipes (pg. ...
2
votes
2
answers
4k
views
How to pipe output of command to another command while also displaying it on the console?
I want to write part of the results of a stream to a file, but I want the entire contents of the stream printed to the console. Is there some command that would help with this?
Minimal example:
Say I ...
1
vote
1
answer
159
views
Piping StdOut adds more text
I am running a simple command (some Kafka related stuff):
curl localhost:8083
Its output is very simple:
root@debian:/etc/kafka# curl localhost:8083/
{"version":"0.11.0.0-cp1","commit":"...
4
votes
1
answer
2k
views
How to plot column in unix in one line
I would like to plot a column of data output by a script in unix in just one line.
For example, something like
script | cut -f2 -d ',' | gnuplot ....
0
votes
1
answer
78
views
Detect IPC between running processes on Unix
Suppose I have 2 processes on any unix-based system and I sure they are using some inter-process communication. How can I detect what do they use in order to simulate or hook it? I mean pipes, for ...
0
votes
1
answer
63
views
pv: Change Prefix on the Fly
To me pv is really handy some times. However, I was wondering if it was possible to change the prefix on the fly.
I mean usually I have something like
in.sh | pv -btrcN "Watch that work!!1!" | out....
7
votes
1
answer
908
views
Multiple unix pipes not working
This first pipeline works fine (printing "c"):
echo "a" | sed 's/a/b/' | sed 's/b/c/'
This one does not do what I expect (nothing gets printed when I feed an "a" into my fifo ):
mkfifo fifo;
cat ...
4
votes
1
answer
1k
views
Using pv(1) to limit rsync speed
I'm trying to use pv rather than rsync's builtin --bwlimit to limit the bandwidth of an rsync transfer because --bwlimit is implemented in an eventually-consistent way, and my transfers are so short ...
5
votes
1
answer
91
views
How many ways does Unix feign files?
I know Unix filesystem sometimes has things that appear to be files but are not actually files. The files in dev actually point to devices. Its also possible to created named pipes which also appear ...
8
votes
3
answers
8k
views
How can I pipe the output of *all* entered shell commands into another? (e.g. pipe everything into 'lolcat')
Good Afternoon,
(OS X user)
I am specifically trying to pipe the output of every shell command I type into the ruby gem 'lolcat' (which makes the output to the terminal rainbow colored).
Is there a ...