Technical article 104925

How can I retrieve a remote file and print it locally using UUCP?

OpenServer 5.0.0

Written · Last revised

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=no
3. 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)

From the Xinuos technical article database, record 104925. Reproduced with permission. The original is at www.sco.com/ta/104925, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.