Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by stouset

1 day ago

https://man7.org/linux/man-pages/man1/mkfifo.1.html

Pretty simple. This creates a named pipe. One end of a shell command redirects to it, one end redirects from it. rm when finished.

2 comments

stouset

Reply

akdev1l  1 day ago

You can just use process substitution

cat <(secret-print my-secret)

SoftTalker  21 hours ago

In a shell script situation, you'd typically trap EXIT and ERR and remove the fifo in the handler.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities