source: branches/samba-3.2.x/docs/manpages/smbspool.8@ 229

Last change on this file since 229 was 229, checked in by Herwig Bauernfeind, 16 years ago

Update 3.2 branch to 3.2.7 docs

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