smbspool - send a print file to an SMB printer


   smbspool {job} {user} {title} {copies} {options} [filename]


   This tool is part of the samba(7) suite.

   smbspool is a very small print spooling program that sends a print file
   to an SMB printer. The command-line arguments are position-dependent
   for compatibility with the Common UNIX Printing System, but you can use
   smbspool with any printing system or from a program or script.


   smbspool specifies the destination using a Uniform Resource Identifier
   ("URI") with a method of "smb". This string can take a number of forms:

   *   smb://server[:port]/printer

   *   smb://workgroup/server[:port]/printer

   *   smb://username:password@server[:port]/printer

   *   smb://domain\username:password@server[:port]/printer

   *   smb://username:password@workgroup/server[:port]/printer

   smbspool tries to get the URI from the environment variable DEVICE_URI.
   If DEVICE_URI is not present, smbspool will use argv[0] if that starts
   with "smb://" or argv[1] if that is not the case.

   Programs using the exec(2) functions can pass the URI in argv[0], while
   shell scripts must set the DEVICE_URI environment variable prior to
   running smbspool.

   smbspool will accept URI escaped characters. This allows setting a
   domain in the username, or space in the printer name. For example


   *   The job argument (argv[1]) contains the job ID number and is
       presently not used by smbspool.

   *   The user argument (argv[2]) contains the print user's name and is
       presently not used by smbspool.

   *   The title argument (argv[3]) contains the job title string and is
       passed as the remote file name when sending the print job.

   *   The copies argument (argv[4]) contains the number of copies to be
       printed of the named file. If no filename is provided then this
       argument is not used by smbspool.

   *   The options argument (argv[5]) contains the print options in a
       single string and is currently not used by smbspool.

   *   The filename argument (argv[6]) contains the name of the file to
       print. If this argument is not specified then the print file is
       read from the standard input.


   This man page is correct for version 3 of the Samba suite.


   smbd(8) and samba(7).


   smbspool was written by Michael Sweet at Easy Software Products.

   The original Samba software and related utilities were created by
   Andrew Tridgell. Samba is now developed by the Samba Team as an Open
   Source project similar to the way the Linux kernel is developed.

   The original Samba man pages were written by Karl Auer. The man page
   sources were converted to YODL format (another excellent piece of Open
   Source software, available at and
   updated for the Samba 2.0 release by Jeremy Allison. The conversion to
   DocBook for Samba 2.2 was done by Gerald Carter. The conversion to
   DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.

Free Software

Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.

Free Books

The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.