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 directoryand 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 grepshould return nothing, andl /dev/printershould return:"No such file or directory".Then start the lpd daemon with the command:
/usr/lib/lpdand /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/printerNote: 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."