All Questions

Filter by
Sorted by
Tagged with
11
votes
2answers
1k views

Why do I seem to lose data using this bash pipe construction?

I am trying to combine a few programs like so (please ignore any extra includes, this is heavy work-in-progress): pv -q -l -L 1 < input.csv | ./repeat <(nc "host" 1234) Where the source of ...
0
votes
1answer
14 views

Process substitution to script in order to monitor iotop

I am actively trying to get the output of the iotop for monitoring. As you know, the iotop is interactive, meaning that once started, it'll provide live updates on disk usage on the system. I'm ...
0
votes
1answer
101 views

Process Substitution (e. g. $(somecommand) ) In A Nutshell

On my shell from home directory on mac, I run the following eval "ls" and this just shows me the directories. But if I run eval "$(ls)" I get the following output: zsh: command not found: ...
1
vote
3answers
208 views

Implementation of process substitution, and concurrency in process substitution

Bash Manual says Process substitution is supported on systems that support named pipes ( fifos) or the /dev/fd method of naming open files. Does it mean that process substition is implemented ...
26
votes
1answer
4k views

Why does BASH process substitution not work with some commands?

On occasion process substitution will not work as expected. Here is an example: Input: gcc <(echo 'int main(){return 0;}') Output: /dev/fd/63: file not recognized: Illegal seek collect2: error: ...
3
votes
2answers
2k views

Creating temp file vs process substitution vs variable expansion?

If I am doing something like creating temporary file some process generating output > temp_file cat temp_file process substitution: cat <(some process generating output) another way : cat ...