1
2
3 
4
5
6
7<html><head><title>smbspool (1)</title>
8
9<link rev="made" href="mailto:samba@samba.org">
10</head>
11<body>
12
13<hr>
14
15<h1>smbspool (1)</h1>
16<h2>Samba</h2>
17<h2>11 October 1999</h2>
18
19
20    
21<p><a name="NAME"></a>
22<p><a name="NAME"></a>
23<h2>NAME</h2>
24    smbspool - mount an SMB filesystem
25<p><a name="SYNOPSIS"></a>
26<h2>SYNOPSIS</h2>
27    
28<strong>smbspool</strong> job user title copies options [filename]
29<p><a name="DESCRIPTION"></a>
30<h2>DESCRIPTION</h2>
31    
32<p>This program is part of the Samba suite.
33<p>smbspool is a very small print spooling program that sends a print
34file to a SMB printer. The command-line arguments are position-dependent for
35compatibility with the Common UNIX Printing System, but you can use
36smbspool with any printing system or from a program or script.
37<p><h2>DEVICE URI</h2>
38    
39<p>smbspool specifies the destination using a Uniform Resource Identifier
40("URI") with a method of "smb". This string can take a number of
41forms:
42<p><dl>
43<li > smb://server/printer
44<p><li > smb://workgroup/server/printer
45<p><li > smb://username:password@server/printer
46<p><li > smb://username:password@workgroup/server/printer
47<p></dl>
48<p>smbspool tries to get the URI from argv[0]. If argv[0] contains the
49name of the program then it looks in the DEVICE_URI environment variable.
50<p>Programs using the exec(2) functions can pass the URI in argv[0],
51while shell scripts must set the DEVICE_URI environment variable prior to
52running smbspool.
53<p><h2>OPTIONS</h2>
54    
55<p>The job argument (argv[1]) contains the job ID number and is presently
56not used by smbspool.
57<p>The user argument (argv[2]) contains the print user's name and is
58presently not used by smbspool.
59<p>The title argument (argv[3]) contains the job title string and is
60passed as the remote file name when sending the print job.
61<p>The copies argument (argv[4]) contains the number of copies to be
62printed of the named file. If no filename is provided than this argument is
63not used by smbspool.
64<p>The options argument (argv[5]) contains the print options in a single
65string and is presently not used by smbspool.
66<p>The filename argument (argv[6]) contains the name of the file to print.
67If this argument is not specified then the print file is read from the
68standard input.
69<p><a name="VERSION"></a>
70<h2>VERSION</h2>
71    
72<p>This man page is correct for version 2\&amp;.0 of the Samba suite\&amp;.
73<p><a name="SEEALSO"></a>
74<h2>SEE ALSO</h2>
75    
76<a href="smbd.8.html"><strong>smbd (8)</strong></a>
77<p><a name="AUTHOR"></a>
78<h2>AUTHOR</h2>
79    
80<p>smbspool was written by Michael Sweet at Easy Software Products.
81<p>The original Samba software and related utilities were created by
82Andrew Tridgell samba@samba.org. Samba is now developed
83by the Samba Team as an Open Source project similar to the way the
84Linux kernel is developed.
85<p>See samba (7) to find out how to get a full
86list of contributors and details on how to submit bug reports,
87comments etc.
88</body>
89</html>
90