#!/bin/bash prog="rpcinfo" usage () { cat >&2 <&2 echo "program ${p} version ${v} is not available" exit 1 fi else for j in $(seq $2 $3) ; do echo "program ${p} version ${j} ready and waiting" done exit 0 fi fi done echo "rpcinfo: RPC: Program not registered" >&2 if [ -n "$v" ] ; then echo "program ${p} version ${v} is not available" else echo "program ${p} is not available" fi exit 1