ITEM: AM9311L
Remote print queue over UUCP
Question:
needs assistance on setting up "UUCP"
Response:
Env:
AIX 3.2.5
Spooler/UUCP
Desc:
Customer has two systems, aix and sco. Unsure if running
uucp on either one. Customer normally dials from sco
to the aix systems. On aix, customer has applications
in which users on sco usually run while connected.
What customer is looking for is to implement 'remote'
printing. In other words, submit a job in aix which
will then be xferred to sco and print.
Customer notices that for remote queues need to have
an IP address. Customer does not have any network
link, only uucp (unsure about that too.)
Act:
To write a specific backend for remote printing over
uucp will be only pursued under a consultline item.
Customer understands.
The /etc/qconfig file would look like this:
lpremote:
device=remoted
remoted:
backend=/tmp/uucpq \
Then use a custom backend as described below.
Response:
ACT:
Did some testing on this and you can use the syntax:
uux "remote!/usr/bin/enq -c -Pqueue local!/some/file"
This will print my /some/file on my "local" system to
the specified print "queue" on the system named "remote"
This guarantees that the file will be transferred over
before the attempt to print it is made and without need
for the shell script above.
This could be incorporated into a backend so that when
jobs are queued to a local queue the above command is
invoked. This way, it would appear as a local queue to
users.
Response:
Action: I made some modifications to the above script and got it to
work in the lab. I'll fax this to the customer. NOTE: I'm
sending this to you as is, and make no gaurentees that it will
work.
\#!/bin/ksh
exec 1>/dev/null
hostname=$1
shift
trap "trap 15;kill -15 0;exit 0" 15
/usr/bin/cat $* > /tmp/uucp.out
uucp /tmp/uucp.out $hostname!/tmp/uucp.out
uux $hostname!lpr -P3930pcl /tmp/uucp.out
if [ "$?" -ne 0 ]
then
exit 64
fi
Add a local queue, filling in Name of queue to Add, Name of Queue Device
to add, and the backend program pathnaem equal to the full path of your
script.
Action:
Customer is unable to execute the uux portion of the shell script. I
had him issue it from the Aix command line, and it dialed , connected,
but never did print on the other system. This HAS to work in order for
us to persue your qdaemon problems. Customer will try to get this
portion of this working, and give me a call when you do.
Desc: We made the following changes to the colon file.
Action: I explained the changes in the colon file
_d=p pass through mode
mo=/etc/uucp/[shell script] hostname change the pipeline to
execute this command.
Support Line: Remote print queue over UUCP ITEM: AM9311L
Dated: August 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:26
Comments or suggestions?
Contact us