File:  [Research Unix] / researchv10no / cmd / lp / lpsend.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#!/bin/sh
dialstring=`qns value in $1`
case "$dialstring" in
"")	;;
*)	lpsend $dialstring tcp printer
esac
quux=$?
case $quux in
0) ;;
*)	echo lpsend $1 tcp fails with $quux
	dialstring=`qns value dk $1`
	case "$dialstring" in
	"")	;;
	*)	lpsend $dialstring dk printer
	esac
esac
exit $?

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.