1 .\" This manpage has been automatically generated by docbook2man
2 .\" from a DocBook document. This tool can be found at:
3 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
4 .\" Please send any bug reports, improvements, comments, patches,
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "SMBSPOOL" "8" "01 October 2002" "" ""
8 smbspool \- send a print file to an SMB printer
11 \fBsmbspool\fR [ \fBjob\fR ] [ \fBuser\fR ] [ \fBtitle\fR ] [ \fBcopies\fR ] [ \fBoptions\fR ] [ \fBfilename\fR ]
15 This tool is part of the Samba suite.
17 smbspool is a very small print spooling program that
18 sends a print file to an SMB printer. The command-line arguments
19 are position-dependent for compatibility with the Common UNIX
20 Printing System, but you can use smbspool with any printing system
21 or from a program or script.
25 smbspool specifies the destination using a Uniform Resource
26 Identifier ("URI") with a method of "smb". This string can take
33 smb://workgroup/server/printer
36 smb://username:password@server/printer
39 smb://username:password@workgroup/server/printer
41 smbspool tries to get the URI from argv[0]. If argv[0]
42 contains the name of the program then it looks in the \fB DEVICE_URI\fR environment variable.
44 Programs using the \fBexec(2)\fR functions can
45 pass the URI in argv[0], while shell scripts must set the
46 \fBDEVICE_URI\fR environment variable prior to
51 The job argument (argv[1]) contains the
52 job ID number and is presently not used by smbspool.
55 The user argument (argv[2]) contains the
56 print user's name and is presently not used by smbspool.
59 The title argument (argv[3]) contains the
60 job title string and is passed as the remote file name
61 when sending the print job.
64 The copies argument (argv[4]) contains
65 the number of copies to be printed of the named file. If
66 no filename is provided then this argument is not used by
70 The options argument (argv[5]) contains
71 the print options in a single string and is currently
75 The filename argument (argv[6]) contains the
76 name of the file to print. If this argument is not specified
77 then the print file is read from the standard input.
80 This man page is correct for version 2.2 of
88 \fBsmbspool\fR was written by Michael Sweet
89 at Easy Software Products.
91 The original Samba software and related utilities
92 were created by Andrew Tridgell. Samba is now developed
93 by the Samba Team as an Open Source project similar
94 to the way the Linux kernel is developed.
96 The original Samba man pages were written by Karl Auer.
97 The man page sources were converted to YODL format (another
98 excellent piece of Open Source software, available at
99 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
100 release by Jeremy Allison. The conversion to DocBook for
101 Samba 2.2 was done by Gerald Carter