Samba provides four variables specifically for use with printing configuration options. They are shown in Table 7.1.
Variable
Definition
%s
The full pathname of the file on the Samba server to be printed
%f
The name of the file itself (without the preceding path) on the Samba server to be printed
%p
The name of the Unix printer to use
%j
The number of the print job (for use with lprm, lppause, and lpresume)
lprm
lppause
lpresume