A/UX: AppleTalk Interface Script Error (8/94)


This article covers a small shell script documentation error--an inconsistent variable reference ("username" versus "title") found in the AppleTalk printer interface script.

This is in the file you get when you define a printer with ADD_AT (AppleTalk printer connection). This is valid with A/UX 1.1.

In the interface directory, check the printer interface file you get. Check the comment line that looks like this:

# lpsched invokes the following command line; I marked the lines that
are incorrect with an ending of <<!!!!!:
#
# argv[0] is the interface program: interface/PRINTERNAME
# argv[1] is the request id: PRINTERNAME-#id
# argv[2] is the requesters id: USERNAME <<!!!!!
# argv[3] is the number of copies: #COPYS
# argv[4] is the list of options: -OPTIONS
# argv[5] is the list of files: /usr/spool/lp/request/PRINTERNAME..
#
# Now parse it.
#
seqid=$1
name=$2
title="$3" <<!!!!!
copies=$4
options="$5"
shift;shift;shift;shift;shift

The comment speaks about the username when the parameter is used for the title.

Article Change History:
24 Aug 1994 - Reviewed and updated.

Support Information Services

Published Date: Feb 18, 2012