Name
smbspool
Synopsis
The smbspool program provides a CUPS-compatible interface to Samba printing by providing a way to send a print job to an SMB printer using the command-line format specified by CUPS 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.
Command synopsis
smbspool job user title copies options filename
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, for specifying 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 standard 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 ...
Get Using Samba, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.