#! /bin/sh # This is the vipipes shell script if [ $# -ne 2 ] then echo "Syntax : $0 inpipe outpipe" 1>&2 exit 1 fi inpipe=$1 outpipe=$2 # add possible locations of mknod to PATH PATH=/etc:"$PATH" for pipe in "$inpipe" "$outpipe" do err=`mknod $pipe p 2>&1` # Note the backquotes if [ "$err" != "" ] then echo "$err ($pipe)" 1>&2 if [ $pipe = $outpipe ] then rm -f $inpipe fi exit 1 fi done exit 0