> From [EMAIL PROTECTED] Wed Feb 20 21:47:34 2002
> Date: Thu, 21 Feb 2002 15:04:16 +1030
> From: Adam Fox <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: DIalout printer filter
>
> Hi all,
>
> Does anyone know of a way to send a print job to a remote printer via a
> modem using LPRng? We have this set up currently on a DG/UX system but
> we are converting over to a linux system to handle the printing. The DG
> dialout printer system was designed for slow dot-matrix printers and the
> modems would only connect at 1200 bps. We want to be able to print to
> laser printers with the modems connecting as fast as they can. If anyone
> knows of a script that will handle establishing the connection between
> the modems then let me know. I'd rather use a script that is known to
> work with LPRng that have to port the DG script to LPRng.
>
> Thanks
>
> Adam Fox.
>
Use 'chat' with a bit of a wrapper script:
lp:lp=|/usr/local/libexec/filters/mychatstuff
and here is the wrapper
#!/bin/sh
PATH=/bin:/usr/bin:/usr/local/bin
export PATH
# exit codes
# JSUCC 0 /* success */
# JFAIL 32 /* failed - retry later */
# JABORT 33 /* aborted - do not try again, but keep job */
# JREMOVE 34 /* failed - remove job */
# JHOLD 37 /* hold this job */
#
# You can set up the chat options in the printcap entry:
dial=`echo $PRINTCAP_ENTRY | sed -n -e 's,:dial=,,p"'`;
if [ "$dial" = "" ] ; then
echo "Missing CHAT options" 1>&2;
exit 33
fi
/bin/chat $dial
status=$?
case $? in
0 ) $status=0;;
1 ) $status=32;;
* ) $status=33;;
esac
exit $status
Patrick Powell Astart Technologies,
[EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.lprng.com)
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------