Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!axion!vision!chris From: chris@vision.UUCP (Chris Davies) Newsgroups: comp.unix.admin Subject: Re: help remote print to bsd from sysV Summary: Buglet in sample source pointed out Message-ID: <1360@vision.UUCP> Date: 9 Jan 91 17:48:53 GMT References: <1991Jan7.173643.18472@jato.jpl.nasa.gov> <6610@biophys.zir.ethz.ch> Reply-To: chris@vision.UUCP (Chris Davies) Organization: VisionWare Ltd., Leeds, UK Lines: 30 In article <6610@biophys.zir.ethz.ch> ruba@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@vision.uucp JANET: chris%vision.uucp@ukc 57 Cardigan Lane | US: chris@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" -------------