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
11 views

Trying to pipe steamcmd output to yad

In order to run a server through steam I need to run this command from it's install directory, this works, and has worked for quite some time. ./srcds_run -game garrysmod +maxplayers $play ...
0
votes
0answers
36 views

IO Error: 32:Broken pipe , popen

I have a simple python script which installs mono-complete on machine. but what I observed is my first call always fail with error IO Error: 32:Broken pipe here is my script, I am not sure what is ...
2
votes
1answer
25 views

Is it possible to pipe from stdin to gzip?

If I run the command s3cmd get s3://bucket/file.gz - I get binary output on the screen. If I try to pipe this to gzip with s3cmd get s3://bucket/file.gz - | zcat I get gzip: stdin: not in gzip format. ...
1
vote
1answer
45 views

how to list file names when searching for strings passed by cat with pipe

I want to search for a string in the files in a directory like: cat /etc/pam.d/* | grep pam_ck_connector.so but I also want to list the file names in which files the string pam_ck_connector.so ...
0
votes
0answers
29 views

Error on boot “could not write bytes, broken pipe”

Each time i boot my Ubuntu just before showing login screen i get a error message after "could not write bytes, broken pipe". Does anyone know why is this happening is there any problem with my ...
0
votes
0answers
98 views

Restream from HDHomeRun with ffmpeg

I have an older HDHR-US that does not have any upnp services and requires a special library. I can use the library on my ubuntu 14.04 server to save the video stream. I can also output to a pipe. ...
2
votes
0answers
57 views

Convert stream video/x-ms-asf to audio and pipe it to stdin of sox

Short story I'm trying co convert something which seems to appear a video stream (to be precise it's a FM radio streamed to the internet via http://stream.polskieradio.pl/program3) of type ...
0
votes
0answers
180 views

Start a background process, write to stdin and read from stdout without blocking

I have a program which reads from stdin and writes to stdout. In my example it is cat. I want to have three scripts to do something like the following: start.sh cat would create a background process ...
1
vote
1answer
153 views

Redirecting output from an Oracle console application in a named pipe

I'm currently developing a plugin to compile Oracle code in my text editor. The folks that developed SQL Developer recently added a command line version sqlcl. The problem is, this a Java application ...
0
votes
2answers
43 views

how to have chown only effect folders, not files?

I have to chmod a structure of subfolders which contain more sufolders and also files naturally. Now I need to change access rights (owner:group, no acl at this point) to this complete structure in ...
0
votes
3answers
204 views

How to get the longest word and the most frequent word starting with a specific letter? [closed]

Given a list of words and their count like this: 2 you 1 polka 2 dress 3 are 4 world I would like to write 2 Bash piped commands which will give me: The longest word starting with the letter 'a' ...
2
votes
1answer
129 views

how to pipe to a kdialog textbox?

echo "hello" | kdialog --textbox - I was hopping that row should pipe the word hello over to kdialog, and by setting the file argument to -, it should have used the piped text as content. Is it ...
0
votes
3answers
69 views

How to search through a man page?

I often want to search through a man page, however I am forced to either do: man <package> | grep <search> Or: man <package> > file.txt But there must be an easier way than ...
0
votes
1answer
147 views

Change framerate of mp4 video without reencoding using mp4box and piping

I'd basically like to do what this guy asked for. Using the lines of Mitch I get a perfect result. I'd now love to use the output of mp4box directly as input of mp4box again (to make one command out ...
4
votes
1answer
418 views

watch cuts off ps aux output when piped

While working on a (Python) script which is of no consequence here, I have come across a very strange behavior involving watch and ps aux, when the latter is piped to something else. I have managed ...
2
votes
2answers
598 views

How do I pipe the output of find command to ffmpeg as a input

I have a video archive and i need to find the file in the archive and then output of the file must be used as input for ffmpeg. find /mnt/video-archieve -name 'file'.mov | ffmpeg -i - ... I know - ...
4
votes
3answers
1k views

How can I pipe the output of a bash or shell command to the clip board? [duplicate]

In order to minimize mouse usage (accessibility and health reasons), how can I pipe the standard out to the OS clip board? That is, I'd like to do something like: $ drush uli | ...
3
votes
2answers
1k views

Tee doesn't get whole output from the pipe

I have a script executing commands like: export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH;./some_app -i $INDEX | tee $LOG echo "Number of errors: $(grep "ERROR" $LOG | wc -l)" The problem is probably in ...
0
votes
1answer
136 views

How to pass a command with variables to at?

So, I'm making a bash script that's supposed to accept times and an extension from the user (through zenity) and schedule a call with sipcmd at the given time: extension=$(zenity --entry ...
1
vote
1answer
45 views

Parse file for recursive pattern

in my dir there are several files with the pattern simulation_y_t for all files with this pattern I would need to check whether in the last line of the file the word hgip comesup or not ...the ...
3
votes
2answers
198 views

Recursively rename files [duplicate]

there is a whole bunch of files all of them who have the pattern joob_1_1 joob_1_2 joob_2_1 joob_2_5 so it is joob then underscore numeric underscore numeric - these are also the only files in the ...
1
vote
1answer
38 views

how to pass single file not list of files

I am running this command while IFS= read -r file;do split -l 20000 -d "$file" "$file";done < file.list.txt now my problem is that this accepts as input a list of files (file.list) which looks ...
0
votes
1answer
85 views

Pipelining and xargs

I am trying to delete some .class file from a directory. So first I have tired to count the available .class file using the following command (after going to the directory) - $ find . -name *.class ...
1
vote
1answer
226 views

How to execute a number of lines using xargs

I have a large sql dump that has 1 insert statement per line. I want to be able to pipe this to xargs so that I can slow down the writes. Basically I want to execute a number of lines, sleep, then ...
0
votes
1answer
259 views

Ubuntu 14.04 on Thinkpad T440S keyboard Issue

I installed Ubuntu Trusty on a brand new lenovo Thinkpad. So far things are going well except for the following: The pipe key gives the < symbol, and when shift is pressed, it gives the > symbol. ...
1
vote
2answers
58 views

how to remove files that are smaller than certain dimensions

I have already found an answer that lists pretty much everything. Except I cannot get it to work. I use: find . -iname "*.jpg" -type f | xargs -I{} identify -format '%w %h %i' {} | awk ...
1
vote
1answer
89 views

Redirection with pipe

I have the following command to be executed. ls > myFile.txt | wc The output of the command shown is 0 0 0 Why isn't the above command giving the line/word/character count of ls output? Am ...
2
votes
2answers
702 views

Find folders of size lesser than x and delete them

I want to find all folders (within a folder) which are less than 100mb large and delete them. I actually don't want to use a bash script. But probably there is some neat one-line-loop possibility to ...
1
vote
3answers
2k 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
1answer
190 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
51 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
191 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' ...
2
votes
1answer
3k 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 ...
4
votes
2answers
10k views

Broken pipe error message

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 then goes black for a moment and then ...
0
votes
1answer
68 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
1k 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
101 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
85 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
94 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
3answers
251 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
109 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 ...
2
votes
3answers
9k 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 ...
4
votes
1answer
2k 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
541 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%% ...
7
votes
2answers
591 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 ...
2
votes
0answers
49 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
19 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
218 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}" ] ...
13
votes
2answers
14k 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 ...
4
votes
2answers
719 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 ...