source: branches/samba-3.5.x/docs/manpages/smbspool.8@ 732

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

Samba Server 3.5: update branche to 3.5.12

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: 10/24/2011
6.\" Manual: System Administration tools
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "SMBSPOOL" "8" "10/24/2011" "Samba 3\&.5" "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.sp
81.RE
82.PP
83smbspool tries to get the URI from the environment variable
84\fBDEVICE_URI\fR\&. If
85\fBDEVICE_URI\fR
86is not present, smbspool will use argv[0] if that starts with
87\(lqsmb://\(rq
88or argv[1] if that is not the case\&.
89.PP
90Programs using the
91exec(2)
92functions can pass the URI in argv[0], while shell scripts must set the
93\fBDEVICE_URI\fR
94environment variable prior to running smbspool\&.
95.SH "OPTIONS"
96.sp
97.RS 4
98.ie n \{\
99\h'-04'\(bu\h'+03'\c
100.\}
101.el \{\
102.sp -1
103.IP \(bu 2.3
104.\}
105The job argument (argv[1]) contains the job ID number and is presently not used by smbspool\&.
106.RE
107.sp
108.RS 4
109.ie n \{\
110\h'-04'\(bu\h'+03'\c
111.\}
112.el \{\
113.sp -1
114.IP \(bu 2.3
115.\}
116The user argument (argv[2]) contains the print user\'s name and is presently not used by smbspool\&.
117.RE
118.sp
119.RS 4
120.ie n \{\
121\h'-04'\(bu\h'+03'\c
122.\}
123.el \{\
124.sp -1
125.IP \(bu 2.3
126.\}
127The title argument (argv[3]) contains the job title string and is passed as the remote file name when sending the print job\&.
128.RE
129.sp
130.RS 4
131.ie n \{\
132\h'-04'\(bu\h'+03'\c
133.\}
134.el \{\
135.sp -1
136.IP \(bu 2.3
137.\}
138The 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\&.
139.RE
140.sp
141.RS 4
142.ie n \{\
143\h'-04'\(bu\h'+03'\c
144.\}
145.el \{\
146.sp -1
147.IP \(bu 2.3
148.\}
149The options argument (argv[5]) contains the print options in a single string and is currently not used by smbspool\&.
150.RE
151.sp
152.RS 4
153.ie n \{\
154\h'-04'\(bu\h'+03'\c
155.\}
156.el \{\
157.sp -1
158.IP \(bu 2.3
159.\}
160The 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\&.
161.SH "VERSION"
162.PP
163This man page is correct for version 3 of the Samba suite\&.
164.SH "SEE ALSO"
165.PP
166\fBsmbd\fR(8)
167and
168\fBsamba\fR(7)\&.
169.SH "AUTHOR"
170.PP
171smbspool
172was written by Michael Sweet at Easy Software Products\&.
173.PP
174The 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\&.
175.PP
176The 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
177ftp://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.