User manual

User’s Manual InterCon-PrintServer
88
With the help of the
lpadmin
command the System V print spooler will be administrated. To mount
the print server into the print spooler system, the print spooler first has to be halted. Now the new
printer is mounted and the spooler has to be started again. Some UNIX implementations allow
mounting new printers without having to stop the print spooler. Please enter the following commands:
# lpshut
# lpadmin -p <printername> \
-v /dev/<printername> \
-i /etc/printserver/interfaces/<printername>\
-F beginning -o nobanner
# /usr/lib/lpsched
In our example, the lpadmin command would be:
# lpshut
# lpadmin -p printer \
-v /dev/printer \
-i /etc/printserver/interfaces/printer
-F beginning -o nobanner
In some cases the
lpadmin
command expects a full pathname (for example
/usr/lib/lpad
-
min
). Using the
-F beginning
option determines that in case of an error the print job will be
started again. With the
-o nobanner
option you may switch off the bannerpage when starting the
print job. These options are not available in all implementations of the
lpadmin
command. They are
missing for example in the HP-UX and BULL OS UNIX systems; here you also have to note that
between a variable and its value no space character is entered.
Due to the fact that the named printer device is a copy of the null device and can be written on by any
user, the
lpadmin
sends a warning which looks like this example:
UX:lpadmin: WARNING: "/dev/<printername>" is accessible by others
TO FIX: If other users can access it you may
get unwanted output. If this is not what you
want change the owner to "lp" and change the
mode to 0600.
Processing continues.
4. Enabling and Starting the Printer
After the print server is mounted into the spooler system, use the
accept
command to notify the print
spooler to accept print jobs for the printer. At this time the spooler can take the print jobs without
sending them to the printer. Sending can only take place after the printer is enabled:
Please enter the following command:
# accept <printername>
# enable <printername>
In our example, these commands would be:
# accept printer
# enable printer
The full pathname may possibly need to be entered.