/usr/lib/radare/bin/daemon is in radare-common 1:1.5.2-6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/sh
#
# Run radare instance as a daemon
#
if [ -z "$FIFO" ]; then
FIFO="/tmp/radare-daemon.fifo"
fi
if [ -z "$1" ]; then
echo "Usage: rsc daemon [radare-args]"
echo "For example:"
echo " $ FIFO=/tmp/a rsc daemon -d ls"
echo "Use the 'FIFO' environment var to define the io port"
exit 1
fi
mkfifo $FIFO
while : ; do
cat $FIFO
done | tee | radare $@
|