
108
|
Samba Pocket Reference
printers. Although smbspool is designed to work best with CUPS
printers, it can be used to send print jobs to non-CUPS Samba
printers as well.
The arguments for smbspool, as shown here, are those used in the
CUPS printing system. However, some of the arguments are
currently ignored because they don’t correspond to the Samba
printing system. These arguments must be supplied in the
command and can be filled in with “dummy” values.
The
job argument refers to the job number and is currently
ignored. The
user argument is the name of the user who
submitted the print job and is also ignored. The
title argument is
the name of the print job and must be supplied. It is used as the
name of the remote print file. The
copies argument is the number
of copies that will be printed. This number is used only if the
(optional) filename argument is supplied. Otherwise, only one
copy is printed. The
options argument (used to specify printing
options), is ignored. The
filename argument is used for specifying
the name of the file to be printed. If it is not provided, the stan-
dard input will be used.
The printer that the job is to be sent to is specified in the
DEVICE_URI environment variable. The format for the printer
name is a device Universal Resource Indicator, which can be in
any of the following formats:
smb://server/printer
smb://workgroup/server/printer
smb://username:password@server/printer
smb:// ...