author | wenzelm |
Wed, 17 Sep 2008 22:06:57 +0200 | |
changeset 28278 | 7af26c1f02ec |
parent 28061 | 5428435de53e |
child 28650 | a7ba12e0d3b7 |
permissions | -rwxr-xr-x |
#!/usr/bin/env bash # # $Id$ # Author: Makarius # # DESCRIPTION: create named pipe PRG="$(basename "$0")" function usage() { echo echo "Usage: $PRG" echo echo " Create a temporary named pipe and return its name." echo exit 1 } function fail() { echo "$1" >&2 exit 2 } ## main [ "$#" != 0 ] && usage FIFO="/tmp/isabelle-fifo$$" mkfifo -m 600 "$FIFO" || fail "Failed to create named pipe $FIFO" echo "$FIFO"