A pipe is a form of redirection that is used in Linux and other Unix-like operating systems to send the output of one program to another program for further processing.

learn more… | top users | synonyms

0
votes
3answers
36 views

One liner ffmpeg (or other) to get only resolution?

I'm not really well versed in the command line so hopefully this isn't too stupid of a question. If I run: ffmpeg -i videofile.avi I get an output such as this: ffmpeg version ...
0
votes
0answers
27 views

How to dump selected iwconfig outputs to text files? (to analyse Tx-power, bit rate, link quality, etc. for EMF reduction)

BACKGROUND I've read about Electromagnetic Field (EMF) pollution and I want to protect myself. I have a not bad solution for my smartphone, now decided to tackle WiFi. It appears that power of the ...
0
votes
0answers
17 views

SSH X windows pipe error message

SSH X windows pipe is successful in displaying a calculator first time out, not satisfied by this I am curious to know what this error message is trying to tell me. ** (gcalctool:3556): WARNING **: ...
0
votes
1answer
49 views

How to create the vertical line [Pipe]

I am new to Ubuntu and i want to know how to create the vertical line that's Pipe in ubuntu 14.10
0
votes
1answer
17 views

How to remove some packages which contain a certain keyword?

For example, when I want to remove Xfce, I did this: aptitude search xfce | grep ^i id gtk2-engines-xfce - GTK+-2.0 theme engine for Xfce id libxfce4ui-common ...
0
votes
1answer
33 views

Why doesn't redirecting output from nginx work?

I want to list all modules of nginx server by line, so I type the following: nginx -V | tr -- - '\n' But it doesn't put modules in lines. If I do it like this: 2>&1 nginx -V | tr -- - '\n' ...
0
votes
1answer
223 views

curl .gz file and pipe it for decompression

I am trying to download some .gz files (N.B. not .tar.gz ones) from given URLs and decompress them to overwrite existing files, if any. For each individual download, I tried the following: curl -O ...
1
vote
2answers
3k views

Broken pipe error nessage

When I boot up in ubuntu 14.10 beta 2, I get the following message for a moment on the screen: "error while reading descriptor: broken pipe: The screen than goes black for a moment the continues on ...
0
votes
1answer
50 views

Console errors are not being shown

The problem is no errors are being shown even when I type wrong command as shown. There are several cases: bash> blablabla bash> man blablabla The output of lsof -a -p $$ -d0,1,2 gives the ...
0
votes
1answer
229 views

Extract tar.gz to STDOUT and zip STDOUT

I need to extract an tar.gz archive I downloaded with curl into STDOUT and use the STDOUT as STDIN for zipping the files again. curl -L someURL | tar xz --strip-components=1 -O| zip -r test.zip ...
0
votes
1answer
39 views

untar content of folder from tar.gz archive that get's data from STDOUT (wget)

I want to extract the content of a single folder from a tar.gz archive that get's it's input from the STDOUT of wget. My command looks like this: wget -O - http://example.com/file.tar.gz | tar -C ...
0
votes
1answer
30 views

Paging standard out using 'more', and piping to syslog

I've implemented a wrapper script which causes all commands executed via this wrapper script to log (via rsyslog) things such as the execution time, the user that ran the command, and the exit code. ...
1
vote
0answers
60 views

Ubuntu 12.04: C++ Program -> Broken Pipe -> Cannot get past Tty1

While I was running a C++ program (it involved SDL), the computer completely froze up; control C didn't work, and escape didn't work (I had it programmed that escape would close the program). So, ...
0
votes
0answers
59 views

Could not write bytes: broken pipe - booting still works, but graphics are sluggish

I know this question has been brought up many times, but of those solutions that I've tried, none works. Everything seems to work fine, except graphics a acting a little weird - alt-tab takes almost ...
0
votes
3answers
79 views

why pipes are used instead of input redirection

I'm new to linux systems and I can't really understand why wee need two operators that can redirect output: pipe as | and ouput redirection operator >? Can't we just always use the second? Most of ...
0
votes
3answers
49 views

Filter only path of files (without directories path) from output using pipe |

rpm -qpl dhad-9.0.27891-2.x86_64.rpm allows to display all file paths and directory paths of this package . Example of output : /opt/dhad/tv_bin/wine/lib/wine/winmm.dll.so ...
1
vote
3answers
1k views

build command by concatenating string in bash

I have a bash script that builds a command-line in a string based on some parameters before executing it in one go. The parts that are concatenated to the command string are supposed to be separated ...
0
votes
0answers
68 views

leap motion sdk broke ubuntu

I am getting cannot create bytes broken pipe error after installing the leap motion sdk on ubuntu 12.04 Earlier, while installing the two dependencies given in the sdk's readme, i had to sudo apt-get ...
4
votes
1answer
391 views

How can i watch the output that was filtered with grep?

I want to watch the changes of the output gsettings list-recursively|grep text-scal which is org.gnome.desktop.interface text-scaling-factor 1.0 com.canonical.Unity.Interface ...
1
vote
1answer
278 views

Failed Firmware for Linux Kernel Update

I'm a bit new to this, while updating the firmware for Linux kernel drivers (1.79.14) I encountered the following problem: installArchives() failed: (Reading database ... (Reading database ... 5%% ...
6
votes
2answers
262 views

Piping with Moreutils ts

I have an incoming stream at a serial port, with new lines appearing about once per second wren@Raven:~$ cat /dev/ttyUSB0 A_Sensor1,B_22.00,C_50.00 A_Sensor1,B_22.00,C_50.00 ...
0
votes
0answers
201 views

“Could not write bytes broken pipe” error on 12.04 LTS

I have installed Kali Linux in VirtualBox on Ubuntu 12.04 LTS. Then I tried to create a common shared folder between the guest and the host. I installed additional plugins for shared folder, it ...
2
votes
0answers
39 views

Cannot write bytes: Broken

I am getting an error at beginning while booting itself and so i can't get to my desktop. When i boot i select Ubuntu and then after disabled bios messages i run directly into the black screen with ...
0
votes
0answers
17 views

Ubuntu does not boot, start - could not write bytes broken pipe [duplicate]

with holding shift I can get to recovery menu, but I have no idea how to simply reset whatever may have done this, I am considerig full reinstall however cannot afford to lose files. Any ideas ...
-2
votes
1answer
126 views

How to make a shell script pipe aware

I have the following script: #!/bin/sh [ "${#}" -eq "0" ] && (printf "%s\\n" "${0}: word ..." >&2; exit 1) _whats() { [ -z "${1}" ] && return 1 [ -z "${2}" ] ...
3
votes
2answers
1k views

Why use a named pipe instead of a file?

I recently read about named pipes, and I couldn't understand why they exist. I've read somewhere that using a named pipe is less time-consuming than using a file. Why is this so? The named pipes also ...
3
votes
2answers
103 views

How can I pipe the output of “find” to “cd”?

What should I do to search for a file in list of folders and change current directory to the directory of the file? I tried find -name script.py | cd but it did not work (not that I was expecting it ...
0
votes
2answers
2k views

Error when boot: Could not write bytes: broken pipe

Good day, I see there are various questions about the same topic but it looks like the cause are somewhat different. I tried tor resolve my problem by looking and trying some of the solutions but ...
0
votes
2answers
199 views

Piping into GraphicsMagick

I'm still learning the command line, and I'm having trouble piping a list of files into graphicsmagick for conversion to pdf: find . -type f | sort | gm convert file.pdf This gives the error: gm ...
2
votes
2answers
473 views

Cat to named pipe causes hang

I'm attempting some streaming with FFMpeg, and I think I have finally found the solution I need to screen blanking. This requires writing PNG's to a named pipe and then having FFMpeg read them as an ...
1
vote
1answer
336 views

How to capture all visited URLs on the command line?

I like to get all URLs I visit in the browser live captured on the command-line for piping them to another program. How would I be able to do this? The format should be just one URL per line, nothing ...
1
vote
3answers
76 views

Trying to figure out what the command mean

Please explain me what does this command mean: wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh wget - use wget to download something -qO- first argument is -q, but what does 0- mean? ...
0
votes
1answer
25 views

Named pipes always open for writing

I want to make a named pipe that is always open for reading and writing. So I typed this in to the terminal: mkfifo testpipe exec 3<> testpipe All is working correct. But when I make a shell ...
1
vote
1answer
221 views

Uncompress and pipe the output to script

I have a script that takes an input with a -i flag. The input file I have is compressed (.gz). What I want to do (not sure it's possible), because the file is huge, do some thing like this: gunzip -c ...
0
votes
0answers
62 views

how to setting pip.ini to use cert

How to setting pip.ini to use cert for each link/url/find-links, example: find-links = http://x.y.z/simple/ cert = xxx.pem http://a.b.c/simple/ cert = sss.pem ...
1
vote
1answer
152 views

piping using ssh without having to relogin for every pipe

I have an ssh connection and I have to send some local files and output to the ssh server. I know I can do this using the following command tar zcf - stuff | ssh user@server 'tar zxf -' I would ...
1
vote
0answers
115 views

Firmware 1.79.9 Package Install operation failed

When I tried to update Ubuntu through Update Manager, all other updates are installed. One update was downloaded but not installed. I tried again and again but error cannot be fixed. I get the ...
1
vote
1answer
80 views

Copy all files whose hashes don't match

I currently have a hash list (known good) of a selection of various files. I want to copy all files when their hashes do not appear in the hash list to a separate directory. I have got the md5deep ...
1
vote
1answer
76 views

help understand diff between: sort < file.txt VS file.txt | sort

so im learning Ubuntu (for the first time) and am reading trough Ubuntu server book chapter 14 says filename.txt | sort will give me an output with the content of the file, but sorted HOWEVER it ...
0
votes
1answer
140 views

When piping output to a file, why are stderr and stdout in the wrong order?

I have a perl script: warn "1\n"; print "2\n"; warn "3\n"; print "4\n"; I pipe the output to a file: perl script.pl &> foo cat foo: 1 3 2 4 Why isn't the output in order, and how do I ...
0
votes
3answers
2k views

Cant login, Broken Pipe?

Okay, so I'm really stuck on this one. So yesterday wile I was playing Kerbal Space Program, the game crashed, so I did a hard shutdown (holding the power button). When I turned it on, it booted just ...
0
votes
1answer
457 views

I can't upgrade 13.10 because of broken pipe

I try upgrading and this is what I get: christopher@chris-computer:~$ sudo apt-get upgrade [sudo] password for christopher: Reading package lists... Done Building dependency tree Reading ...
2
votes
1answer
205 views

Space (and pipe sign) works on occasion only

I have an issue that when I try to write pipe sign "|" and space after that, I sometimes get wrong type of space (\240) and my command fails. This issue persists on different shells. How could I fix ...
0
votes
1answer
90 views

Read only n first lines from something

When I'm saying something like curl http://example.com/123 and I want to read only n first lines, how do I do that? I know that's something like: curl http://example.com/123 | ???
0
votes
1answer
25 views

Mail on an error

I would like to be notified by email whenever my web-application does an error. In this link, someone says that "Guys, just pipe ~/.pm2/logs/*.err to your favourite mailer, all data are there.". I ...
3
votes
0answers
3k views

Can't boot Ubuntu 12.04 “Could not write bytes: broken pipe”

SYSTEM: 4GB RAM; 500GB DISK I have tried some of the solutions I have seen about this error and none have helped. Here is the history: 1. I have been running 12.04 LTE for about a year now with no ...
4
votes
1answer
175 views

When shuting down a black screen with a broken pipe message shows for half second

It is actually very fast when it shows, I had to record it to actually saw what it said and it is: could not write bytes: Broken pipe Checking battery state... cpid: exiting Checking for running ...
0
votes
3answers
751 views

I can't install valgrind due dpkg-deb broken pipe, how to fix this? [duplicate]

hanu@hanu-HP-Pavilion-Sleekbook-14:~/raijin/build_debug$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting ...
1
vote
2answers
478 views

Problem IN piping the output of one command to other

I want to recursively sort all the file in the present directly. I tried ls -lh -R |sort >> output.txt. But i think multi-threading problem is creating a problem, before complete output of ls ...
4
votes
2answers
487 views

How can I use the value from a pipe in the test program?

wc -l | test -eq 1 This doesn't work. I want to compare the result of wc with the value of 1. How can I do that?