source: vendor/current/docs-xml/manpages/smbspool.8.xml

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 4.9 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3<refentry id="smbspool.8">
4
5<refmeta>
6 <refentrytitle>smbspool</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">4.4</refmiscinfo>
11</refmeta>
12
13
14<refnamediv>
15 <refname>smbspool</refname>
16 <refpurpose>send a print file to an SMB printer</refpurpose>
17</refnamediv>
18
19<refsynopsisdiv>
20 <cmdsynopsis>
21 <command>smbspool</command>
22 <arg choice="req">job</arg>
23 <arg choice="req">user</arg>
24 <arg choice="req">title</arg>
25 <arg choice="req">copies</arg>
26 <arg choice="req">options</arg>
27 <arg choice="opt">filename</arg>
28 </cmdsynopsis>
29</refsynopsisdiv>
30
31<refsect1>
32 <title>DESCRIPTION</title>
33
34 <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
35 <manvolnum>7</manvolnum></citerefentry> suite.</para>
36
37 <para>smbspool is a very small print spooling program that
38 sends a print file to an SMB printer. The command-line arguments
39 are position-dependent for compatibility with the Common UNIX
40 Printing System, but you can use smbspool with any printing system
41 or from a program or script.</para>
42
43 <para><emphasis>DEVICE URI</emphasis></para>
44
45 <para>smbspool specifies the destination using a Uniform Resource
46 Identifier ("URI") with a method of "smb". This string can take
47 a number of forms:</para>
48
49 <itemizedlist>
50 <listitem><para>smb://server[:port]/printer</para></listitem>
51 <listitem><para>smb://workgroup/server[:port]/printer</para></listitem>
52 <listitem><para>smb://username:password@server[:port]/printer</para></listitem>
53 <listitem><para>smb://domain\username:password@server[:port]/printer</para></listitem>
54 <listitem><para>smb://username:password@workgroup/server[:port]/printer</para></listitem>
55 </itemizedlist>
56
57 <para>smbspool tries to get the URI from the environment variable
58 <envar>DEVICE_URI</envar>. If <envar>DEVICE_URI</envar> is not present,
59 smbspool will use argv[0] if that starts with <quote>smb://</quote>
60 or argv[1] if that is not the case.</para>
61
62 <para>Programs using the <command>exec(2)</command> functions can
63 pass the URI in argv[0], while shell scripts must set the
64 <envar>DEVICE_URI</envar> environment variable prior to
65 running smbspool.</para>
66
67 <para>smbspool will accept URI escaped characters. This allows setting
68 a domain in the username, or space in the printer name. For example
69 smb://domain%5Cusername/printer%20name</para>
70</refsect1>
71
72<refsect1>
73 <title>OPTIONS</title>
74
75 <itemizedlist>
76 <listitem><para>The job argument (argv[1]) contains the
77 job ID number and is presently not used by smbspool.
78 </para></listitem>
79
80 <listitem><para>The user argument (argv[2]) contains the
81 print user's name and is presently not used by smbspool.
82 </para></listitem>
83
84 <listitem><para>The title argument (argv[3]) contains the
85 job title string and is passed as the remote file name
86 when sending the print job.</para></listitem>
87
88 <listitem><para>The copies argument (argv[4]) contains
89 the number of copies to be printed of the named file. If
90 no filename is provided then this argument is not used by
91 smbspool.</para></listitem>
92
93 <listitem><para>The options argument (argv[5]) contains
94 the print options in a single string and is currently
95 not used by smbspool.</para></listitem>
96
97 <listitem><para>The filename argument (argv[6]) contains the
98 name of the file to print. If this argument is not specified
99 then the print file is read from the standard input.</para>
100 </listitem>
101 </itemizedlist>
102</refsect1>
103
104
105<refsect1>
106 <title>VERSION</title>
107
108 <para>This man page is correct for version 3 of the Samba suite.</para>
109</refsect1>
110
111<refsect1>
112 <title>SEE ALSO</title>
113 <para><citerefentry><refentrytitle>smbd</refentrytitle>
114 <manvolnum>8</manvolnum></citerefentry> and <citerefentry><refentrytitle>samba</refentrytitle>
115 <manvolnum>7</manvolnum></citerefentry>.</para>
116</refsect1>
117
118<refsect1>
119 <title>AUTHOR</title>
120
121 <para><command>smbspool</command> was written by Michael Sweet
122 at Easy Software Products.</para>
123
124 <para>The original Samba software and related utilities
125 were created by Andrew Tridgell. Samba is now developed
126 by the Samba Team as an Open Source project similar
127 to the way the Linux kernel is developed.</para>
128
129 <para>The original Samba man pages were written by Karl Auer.
130 The man page sources were converted to YODL format (another
131 excellent piece of Open Source software, available at <ulink url="ftp://ftp.icce.rug.nl/pub/unix/">
132 ftp://ftp.icce.rug.nl/pub/unix/</ulink>) and updated for the Samba 2.0
133 release by Jeremy Allison. The conversion to DocBook for
134 Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2
135 for Samba 3.0 was done by Alexander Bokovoy.</para>
136</refsect1>
137
138</refentry>
Note: See TracBrowser for help on using the repository browser.