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