Problem
How can UUCP be configured to allow a remote file to be retrieved and then automatically printed on the local system?
Solution
Take these steps:1. Configure and test your UUCP connection to the remote system. See Chapter 7, page 281 in the SCO OpenServer System Administrator's Guide for details.
2. Make an entry in /usr/lib/uucp/Permissions for the LOCAL
system that allows lp(C) to be run by uux(C). For example,
for a system called "spammer":MACHINE=spammer LOGNAME=uucp \
COMMANDS=rmail:rnews:uucp:lp: \
READ=/usr/spool/uucppublic:/usr/tmp \
WRITE=/usr/spool/uucppublic:/usr/tmp \
SENDFILES=yes REQUEST=no3. The following example shows how uux(C) can then be used to
retrieve and print the file. The file is retrieved from a
system called "scolon", and then is printed on the local
system's default printer:uux "!lp -c scolon!/usr/spool/uucppublic/info"Note the use of "-c", which forces lp(C) to make a copy of the file before it is printed. This is necessary because the UUCP subsystem will delete the file after running lp(C), which prevents it from being printed by the interface script.
See also
uux(C) Permissions(F) uucp(C) lp(C)