Technical article 116643

When I use the lpmove(ADM) utility, I get "connect: No such file or directory"

OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

When I use the lpmove(ADM) command to move a print job from one queue to another, I get the error:

connect: No such file or directory

and the print job is not moved.

Cause

It is likely that the FIFO /dev/printer is missing.  This, in turn,
is probably because lpd, the line printer daemon, is currently not
running.
If remote printing is configured, then network-aware versions of
several lp binaries, including lpmove(ADM), replace the default
local versions.  The network-aware version of lpmove uses the
FIFO /dev/printer to communicate with lpd in the event of a non-local
move--that is, one in which a print request and/or print queue
involved in the move are non-local.  /dev/printer is created by
lpd when it starts up.

Solution

Verify that lpd is not running and the file /dev/printer does not exist; that is, the command:

ps -e | grep "lpd$" | grep -v grep
should return nothing, and
l /dev/printer
should return:
"No such file or directory".

Then start the lpd daemon with the command:

/usr/lib/lpd
and /dev/printer should be created automatically.
Note: it is also possible that /dev/printer was somehow
inadvertently removed while lpd is running.  If so, you can
recreate it by simply doing the following:
mknod /dev/printer p
chmod 700 /dev/printer
Note: problems have been reported with the network-aware version
of lpmove for non-root users, when all the print requests and
queues involved are _local_.  See the technical article referred
to below for more information.

See also

ta105597, "Remote line printing breaks lpmove(ADM) under SCO OpenServer 5."

From the Xinuos technical article database, record 116643. Reproduced with permission. The original is at www.sco.com/ta/116643, which is reachable but blocked from search engines.

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.