help remote print to bsd from sysV

Chris Davies chris at vision.UUCP
Thu Jan 10 04:48:53 AEST 1991


In article <6610 at biophys.zir.ethz.ch> ruba at molbio.ethz.ch (Rudolf Baumann)
writes:
>I use the followin lp interface on the SysV machine:

[...]

>		cat "$file" 2>&1 | rsh BSD-machine -l print lpr -Pps || exit 1

You will get problems if the remote host "BSD-machine" is down, or not
available across the network for any reason.  We have a similar setup and I
found that it was necessary to test the result status from rsh (well, we have
rcmd on our TCP/IP implementation) and retry after eg 30 seconds if the
connection failed.  Thus you get (approximately),

:   while :
:   do
:	if cat "$MYFILE" | rcmd "$RHOST" -l "$RUSER" lp ...
:	then
:	    break
:	else
:	    sleep 60
:	fi
:   done

Chris
-- 
VISIONWARE LTD         | UK: chris at vision.uucp    JANET: chris%vision.uucp at ukc
57 Cardigan Lane       | US: chris at vware.mn.org   BANGNET: ...!ukc!vision!chris
LEEDS LS4 2LE, England | VOICE:  +44 532 788858   FAX:  +44 532 304676
-------------- "VisionWare:   The home of DOS/UNIX/X integration" -------------



More information about the Comp.unix.admin mailing list