Re:How To Log Bash History to Syslog
by sciurus on Friday November 11, 2011 @03:33PM
(#3226045)
It's called process substitution. In this case it runs the logger command, connects its input to a file in /dev/fd, and places the name of that file in the argument list of history. I've included a small demonstration below. This is useful since the history command won't write to standard out so you can't use a normal pipe. It's more common to see process substitution used to gather output from multiple commands, see http://www.linuxjournal.com/content/shell-process-redirectio...
[ Parent
| on HN ]
There are no comments on this comment yet.