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

1
vote
0answers
25 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
39 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
48 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
35 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
95 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
33 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
204 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
156 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
182 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
123 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 ...
1
vote
0answers
29 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
16 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
77 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}" ] ...
2
votes
2answers
245 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
66 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
1answer
257 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
1answer
61 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
161 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
166 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
54 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
21 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
60 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
49 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
114 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
106 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
93 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
61 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
62 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
91 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
450 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
136 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
55 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
20 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 ...
3
votes
1answer
164 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
578 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
402 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
270 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
267 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. ...
10
votes
1answer
689 views

What does this “… | ps `cat`” command do?

On my Internet research, I found the following command as solution to find the process name of a window: xprop _NET_WM_PID | sed 's/_NET_WM_PID(CARDINAL) = //' | ps `cat` I just do not understand ...
0
votes
1answer
236 views

update followed by “broken pipe”, read-only disks, and error

Yesterday night I did an apt-get update and installed some updates (unfortunately I didn't really pay attention to what I've installed). This morning when I switch the laptop on, it couldn't boot and ...
1
vote
1answer
334 views

Search files in subfolder and export results to file

I have a folder with hundreds of subfolders. I need to locate recursively within the subfolders those that don't have certain files inside (for instance *ch.pdf or *.jpg) and export the results to a ...
3
votes
1answer
122 views

How to avoid delay in output stream pipe

While i pipe nethogs it takes too much delay for the output ( About 5-200 sec instead of 1 sec depend on pipe,cmd etc). Nethogs print output in every second. For the sake of simplicity consider the ...
1
vote
0answers
56 views

cp hangs on certain Windows files

I am currently trying to use Ubuntu 9.04 live CD (it's what I had when my computer took a dump) to copy some Windows files from an old drive to a new drive. I'm using cp -Rvf source dest. The issue ...
2
votes
2answers
478 views

use output from alias command as filename to open in vi

I set up an alias this morning to help finding the latest log file in a directory. My alias looks like alias latest="ls -lat | grep ^- | awk '{print \$8}' | head -1" In my research so far this ...
5
votes
3answers
15k views

Kill Java processes

I'm working on a computationally heavy code that - for now - crashes a lot, but I'm still working on it :) When it crashes, I can't close the GUI window; I have to open a shell and kill -9 the ...
3
votes
1answer
2k views

How to output avconv with pipe

I am trying to pipe an output from avconv to grep but somehow the pipe is not working correctly. The following ways are not working: avconv -i MOVIE.mkv | grep SOMETHING - Which should show only the ...
18
votes
1answer
4k views

How do I pipe terminal standard output (stdout) to the clipboard?

For example, Say I want to list the contents of a folder and directly paste them into a chat window for a friend to see. I realize I could do ls > filename.txt to create a file (filename.txt) ...