From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <39bde31821abe997af2655f362ea25b5@collyer.net> To: 9fans@collyer.net From: Geoff Collyer MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] Re: CRLFication (was: libbio and CR-LF) Date: Tue, 25 Feb 2003 16:14:17 -0800 Topicbox-Message-UUID: 72aefc86-eacb-11e9-9e20-41e7f4b1d025 I mistakenly shipped a version of dial that uses bicp by default, which won't work yet; bicp needs a little more work. Meanwhile, if you change cmd=bicp # dialcp to cmd=dialcp you'll get better results. I'm enclosing dialcp and diallp, which is specifically intended for PostScript printing. # To unbundle, run this file echo dialcp sed 's/^X//' >dialcp <<'!' X#!/bin/rc X# dialcp net - bidirectional copy between stdin, stdout and net rfork e cat $1 & cat >$1 exstat=$status sleep 1 # wait for any response if (test -e /proc/$apid/note) X echo kill >/proc/$apid/note exit $exstat ! echo diallp sed 's/^X//' >diallp <<'!' X#!/bin/rc X# diallp net - bidirectional copy between stdin, stdout and net (ps printer) rfork es awk ' X/[ ]/ { gsub(/[ ]/, "") } X!/^%\[ / { next } X/''/ { gsub(/''/, "''''") } X { print "echo ''" $0 "''" } X/flushing|Error/ { print "echo kill >/proc/$pid/notepg"; exit } X# /printererror/ X' | rc & cat >$1 exstat=$status sleep 1 # wait for any response if (test -e /proc/$apid/note) X echo kill >/proc/$apid/note exit $exstat !