Mkfifo

Aus SchnallIchNet
Wechseln zu: Navigation, Suche

fifo erstellen

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 "ssh info: $x" | wall
done;