Reputation
822
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
1 10 20
Impact
~66k people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
Apr
5
awarded  Notable Question
Mar
15
comment bash process substitution with temporary file
@Wildcard as I previously said. This is not a programming problem. I already said that cmd >x;objdump x;rm x is the best approach, mktemp is not really needed. I wanted a solution that is convenient for one off scripts.
Mar
14
comment bash process substitution with temporary file
@Wildcard using fifo is not possible with objdump, that's the whole point of the question. Otherwise <() was good enough.
Mar
14
comment bash process substitution with temporary file
@Wildcard I might be, but I can't see why is it related to my question. Would you enlighten me? As I said, one can already do cmd >x;cmd2 x;rm x, and I don't see the difference
Mar
14
comment bash process substitution with temporary file
@meuh thanks, that's a good option! Please add it as an answer and I'll accept it.
Mar
14
comment bash process substitution with temporary file
@cuonglm that would make bash always use temporary files, which is not what I want (not to mention that home baked bash is not a great idea).
Mar
14
comment bash process substitution with temporary file
@Wildcard I don't see how mktemp helps. It won't remove the file automatically. I might as well just do foo >/tmp/xxx;cmd /tmp/xx;rm /tmp/xxx It's not about bash programming, for which there are better solutiosn, but about one off one-line scripts.
Mar
14
awarded  Yearling
Mar
14
asked bash process substitution with temporary file
May
28
awarded  Popular Question
Jan
20
awarded  Nice Question
Nov
25
awarded  Yearling
Oct
11
awarded  Good Question
Jul
30
awarded  Notable Question
Jul
19
awarded  Popular Question
Jul
2
awarded  Curious
May
4
awarded  Famous Question
Apr
8
comment How do I recover from the Heartbleed bug in OpenSSL?
Client certs are also affected IIRC
Mar
19
awarded  Nice Question
Feb
10
awarded  Popular Question