A popular SMB/CIFS client feature on Linux is the ability to print to printers that are connected to Windows systems or to other systems that support SMB/CIFS printing. (Many dedicated print server appliances support SMB/CIFS printing, for instance.) Precisely how this task is accomplished depends on the software installed on your Linux system. One way that should always work, given an appropriately formatted file, is to use smbclient to submit a print job. You can also configure your Linux print queue to submit jobs to a remote server via SMB/CIFS, but the details vary with your local print queue. This section describes how to configure CUPS to configure an SMB/CIFS printer, as well as how to do the job with BSD LPD or LPRng.
If you have a one-time need to print to a Windows printer from Linux,
you may want to consider using
to do the job directly. As described
earlier, smbclient is a basic text-mode tool for
transferring files using SMB/CIFS. Many smbclient
features and commands are modelled after those in text-mode FTP
clients. One command in particular, though, is of interest here:
smbclient //MANDRAGORA/HP4000Password: Domain=[GREENHOUSE] OS=[Unix] Server=[Samba 3.0.3] smb: \>
print myoutput.psputting file myoutput.ps as myoutput.ps (29.8 ...