Skip to main content

Questions tagged [process-substitution]

Process substitution a form of inter-process communication that allows the input or output of a command to appear as a file (such as: `<(cmd)` or `>(cmd)`).

3 votes
1 answer
450 views

I don't understand the following: $ cat <(sleep 60) & jobs -l [1] 63813 [1]+ 63813 Running cat <(sleep 60) & /proc/63799/fd$ ps --forest PID TTY TIME CMD ...
The Quark's user avatar
  • 454
1 vote
1 answer
159 views

If you have Pandoc installed, the following script will retrieve its HTML template, write it into a temporary file, make some adjustments, and then pass this file as a parameter: template=$(mktemp ...
jsx97's user avatar
  • 1,377
0 votes
1 answer
88 views

Can someone please explain to me what is happening here? This is what I have reduced my situation down to: # make 20 test gifs out of the same source file. for i in {1..20}; do cp -p ../some-random-...
WoodrowShigeru's user avatar
0 votes
0 answers
128 views

I am wondering why this docker build command fails: docker build -t inline_img -f <(cat `FROM node:12` ) . [+] Building 0.1s (2/2) FINISHED => ERROR [internal] load build definition from 11 ...
Alexander Mills's user avatar
0 votes
0 answers
188 views

I have a would-be POSIX script that includes filtering the stderr output: exec <cmd> "$@" 2> >(grep -v "blih bluh blah") Redirection does not occur because process ...
Cbhihe's user avatar
  • 2,910
2 votes
1 answer
308 views

Inspired by this answer https://security.stackexchange.com/a/166645 I am wondering the reason behind the weird ordering when I run these commands: root@6cb8704148bf:/usr/app# echo <(printf "...
jamylak's user avatar
  • 123
0 votes
0 answers
20 views

The following script results in error when called directly, but not when called with . ./test.sh: % cat test.sh echo "foo" | tee >(rev) % . ./process_subst_test.sh foo oof % ./...
wass rubleff's user avatar
0 votes
0 answers
477 views

Recently, I faced some problems in developing bash pipelines with docker. This regards to the use of process substitution [<()] as input for a specific docker command. I know that this is a problem ...
Luis Arge's user avatar

15 30 50 per page
1
2 3 4 5
13