Create fifo
mkfifo /path/to/file.fifo
Example usage
#!/bin/sh
P=/var/run/mysshwatcher.pipe
test -p $P || mkfifo $P
while read x <$P; do
# ... whatever, e.g.:
echo "Notification: $x" | wall
done;
mkfifo /path/to/file.fifo
#!/bin/sh
P=/var/run/mysshwatcher.pipe
test -p $P || mkfifo $P
while read x <$P; do
# ... whatever, e.g.:
echo "Notification: $x" | wall
done;