source: vendor/3.6.0/docs/manpages/smbspool.8

Last change on this file was 740, checked in by Silvan Scherrer, 13 years ago

Samba Server: update vendor to 3.6.0

File size: 4.5 KB
Line 
1'\" t
2.\" Title: smbspool
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 08/08/2011
6.\" Manual: System Administration tools
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "SMBSPOOL" "8" "08/08/2011" "Samba 3\&.6" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22smbspool \- send a print file to an SMB printer
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25smbspool {job} {user} {title} {copies} {options} [filename]
26.SH "DESCRIPTION"
27.PP
28This tool is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32smbspool 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\&.
33.PP
34\fIDEVICE URI\fR
35.PP
36smbspool specifies the destination using a Uniform Resource Identifier ("URI") with a method of "smb"\&. This string can take a number of forms:
37.sp
38.RS 4
39.ie n \{\
40\h'-04'\(bu\h'+03'\c
41.\}
42.el \{\
43.sp -1
44.IP \(bu 2.3
45.\}
46smb://server[:port]/printer
47.RE
48.sp
49.RS 4
50.ie n \{\
51\h'-04'\(bu\h'+03'\c
52.\}
53.el \{\
54.sp -1
55.IP \(bu 2.3
56.\}
57smb://workgroup/server[:port]/printer
58.RE
59.sp
60.RS 4
61.ie n \{\
62\h'-04'\(bu\h'+03'\c
63.\}
64.el \{\
65.sp -1
66.IP \(bu 2.3
67.\}
68smb://username:password@server[:port]/printer
69.RE
70.sp
71.RS 4
72.ie n \{\
73\h'-04'\(bu\h'+03'\c
74.\}
75.el \{\
76.sp -1
77.IP \(bu 2.3
78.\}
79smb://username:password@workgroup/server[:port]/printer
80.RE
81.sp
82.RE
83.PP
84smbspool tries to get the URI from the environment variable
85\fBDEVICE_URI\fR\&. If
86\fBDEVICE_URI\fR
87is not present, smbspool will use argv[0] if that starts with
88\(lqsmb://\(rq
89or argv[1] if that is not the case\&.
90.PP
91Programs using the
92exec(2)
93functions can pass the URI in argv[0], while shell scripts must set the
94\fBDEVICE_URI\fR
95environment variable prior to running smbspool\&.
96.SH "OPTIONS"
97.sp
98.RS 4
99.ie n \{\
100\h'-04'\(bu\h'+03'\c
101.\}
102.el \{\
103.sp -1
104.IP \(bu 2.3
105.\}
106The job argument (argv[1]) contains the job ID number and is presently not used by smbspool\&.
107.RE
108.sp
109.RS 4
110.ie n \{\
111\h'-04'\(bu\h'+03'\c
112.\}
113.el \{\
114.sp -1
115.IP \(bu 2.3
116.\}
117The user argument (argv[2]) contains the print user\'s name and is presently not used by smbspool\&.
118.RE
119.sp
120.RS 4
121.ie n \{\
122\h'-04'\(bu\h'+03'\c
123.\}
124.el \{\
125.sp -1
126.IP \(bu 2.3
127.\}
128The title argument (argv[3]) contains the job title string and is passed as the remote file name when sending the print job\&.
129.RE
130.sp
131.RS 4
132.ie n \{\
133\h'-04'\(bu\h'+03'\c
134.\}
135.el \{\
136.sp -1
137.IP \(bu 2.3
138.\}
139The 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\&.
140.RE
141.sp
142.RS 4
143.ie n \{\
144\h'-04'\(bu\h'+03'\c
145.\}
146.el \{\
147.sp -1
148.IP \(bu 2.3
149.\}
150The options argument (argv[5]) contains the print options in a single string and is currently not used by smbspool\&.
151.RE
152.sp
153.RS 4
154.ie n \{\
155\h'-04'\(bu\h'+03'\c
156.\}
157.el \{\
158.sp -1
159.IP \(bu 2.3
160.\}
161The 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\&.
162.RE
163.SH "VERSION"
164.PP
165This man page is correct for version 3 of the Samba suite\&.
166.SH "SEE ALSO"
167.PP
168\fBsmbd\fR(8)
169and
170\fBsamba\fR(7)\&.
171.SH "AUTHOR"
172.PP
173smbspool
174was written by Michael Sweet at Easy Software Products\&.
175.PP
176The 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\&.
177.PP
178The 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
179ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) 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\&.
Note: See TracBrowser for help on using the repository browser.