Skip to content
Advertisement

Tag: pipe

dump methods from shared libraries

to list all methods from a shared library I use the what has an output like this: But when I try to pipe the output of find into objdump like this I get this error: and this lib folder does contain a lot of shared library files. What is wrong with my command? SK Answer or objdump expects the name

Read stdin in chunks in Bash pipe

I have some shell scripts that works with pipes like such: My bar.sh calls some command line program that can only take a certain number of lines of stdin. Thus, I want foo.sh’s large stdout to be chunked up in N number of lines to make multiple bar.sh calls. Essentially, paginate foo.sh’s stdout and do multiple bar.sh. Is it possible?

“cat a | cat b” ignoring contents of a

The formal definition of pipe states that the STDOUT of the left file will be immediately piped to the STDIN of the right file.I have two files, hello.txt and human.txt. cat hello.txt returns Hello and cat human.txt returns I am human.Now if I do cat hello.txt | cat human.txt, shouldn’t that return Hello I am human?Instead I’m seeing command not

redirecting stdin to tempfile in script

I want to write a bash script that receives a list of files through a pipe, writes a tempfile and then starts a program (qiv – an image viewer) with this tempfile. Example: where piped_qiv would look something like this: I’m probably missing something very basic about bash scripting but I was not able to find a proper solution to

Unix pipe experiment hangs

The problem is that this program won’t output the expected START and END, also not exiting unless I kill it from shell. Answer You have the order of the dup2( existing_fd, new_fd ) parameters reversed. You have another bug that breaks lots of “let’s try out pipe(2)” experiments. You aren’t closing the ends of the pipe that get duplicated over

Read noonnamed pipe in terminal

Hellow. I have very simple C program. I create pipe in program (standard, non-named). Can I read pipe of existing process in terminal (stream with > or cat?). I try it but my command do nothing. Im know tkat i can create named pipe who is very easy for external I/O. I have number of pipe for /proc/number/fd Why I

linux read sys call doesnt get EOF

First of all sorry if my English won’t be fluent and clear. I’m working on understanding pipes and communication between processes. I have tried to implement two c programs, the one writes into a certain pipe from what he reads from the standard input and the other one waits until the pipe opens and reads from it and prints to

Advertisement