1 .\" This manpage has been automatically generated by docbook2man-spec
2 .\" from a DocBook document. docbook2man-spec can be found at:
3 .\" <http://shell.ipoline.com/~elmert/hacks/docbook2X/>
4 .\" Please send any bug reports, improvements, comments, patches,
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "SMBSPOOL" "8" "02 May 2002" "" ""
8 smbspool \- send print file to an SMB printer
11 \fBsmbspool\fR [ \fBjob\fR ] [ \fBuser\fR ] [ \fBtitle\fR ] [ \fBcopies\fR ] [ \fBoptions\fR ] [ \fBfilename\fR ]
14 This tool is part of the Sambasuite.
16 smbspool is a very small print spooling program that
17 sends a print file to an SMB printer. The command-line arguments
18 are position-dependent for compatibility with the Common UNIX
19 Printing System, but you can use smbspool with any printing system
20 or from a program or script.
24 smbspool specifies the destination using a Uniform Resource
25 Identifier ("URI") with a method of "smb". This string can take
32 smb://workgroup/server/printer
35 smb://username:password@server/printer
38 smb://username:password@workgroup/server/printer
40 smbspool tries to get the URI from argv[0]. If argv[0]
41 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
52 The job argument (argv[1]) contains the
53 job ID number and is presently not used by smbspool.
56 The user argument (argv[2]) contains the
57 print user's name and is presently not used by smbspool.
60 The title argument (argv[3]) contains the
61 job title string and is passed as the remote file name
62 when sending the print job.
65 The copies argument (argv[4]) contains
66 the number of copies to be printed of the named file. If
67 no filename is provided than this argument is not used by
71 The options argument (argv[5]) contains
72 the print options in a single string and is presently
76 The filename argument (argv[6]) contains the
77 name of the file to print. If this argument is not specified
78 then the print file is read from the standard input.
81 This man page is correct for version 2.2 of
89 \fBsmbspool\fR was written by Michael Sweet
90 at Easy Software Products.
92 The original Samba software and related utilities
93 were created by Andrew Tridgell. Samba is now developed
94 by the Samba Team as an Open Source project similar
95 to the way the Linux kernel is developed.
97 The original Samba man pages were written by Karl Auer.
98 The man page sources were converted to YODL format (another
99 excellent piece of Open Source software, available at
100 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
101 release by Jeremy Allison. The conversion to DocBook for
102 Samba 2.2 was done by Gerald Carter