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
1answer
42 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
14 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
23 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
112 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 ...
0
votes
2answers
2k 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
49 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
172 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
29 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
28 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
51 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
55 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
72 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
47 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
830 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
62 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
344 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
241 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
249 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
195 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
38 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
116 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
94 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
1k 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
175 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
415 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
294 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
72 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
22 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
152 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
60 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
150 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
110 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 ...
0
votes
0answers
115 views

updated xserver and now I get a black screen / cannot write bytes: broken pipe

I got a new CINQ monitor for my laptop and I tried following the instructions at http://how-to.cc/get-a-displaylink-video-adapter-working-with-ubuntu-12-04 for updating the necessary drivers. I ...
1
vote
1answer
79 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
72 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
125 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
185 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
81 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
23 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
173 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
699 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
471 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
448 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?
3
votes
1answer
39 views

REGEX behaves differently!

When running the following echo "abc>asf<tfg"|sed 's/.*>\(.*\)</\1/' The output is: asftfg I don't understand why tfg gets printed? My expected result is asf. Though, it works ...
2
votes
1answer
370 views

Pipe an infinite stream to internal loop?

I've seen a lot of things about redirecting stdout to a TCP socket, but no real example of how to do it in practice, specifically when the output stream generated by the first "command" never ends. ...