version 1, including all changes.
.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
SMBSPOOL |
| |
|
2 |
!!!SMBSPOOL |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
OPTIONS |
| |
|
7 |
VERSION |
| |
|
8 |
SEE ALSO |
| |
|
9 |
AUTHOR |
| |
|
10 |
---- |
| |
|
11 |
!!NAME |
| |
|
12 |
|
| |
|
13 |
|
| |
|
14 |
smbspool - send print file to an SMB printer |
| |
|
15 |
!!SYNOPSIS |
| |
|
16 |
|
| |
|
17 |
|
| |
|
18 |
__smbspool__ [[ __job__ ] [[ __user__ ] [[ |
| |
|
19 |
__title__ ] [[ __copies__ ] [[ __options__ ] [[ |
| |
|
20 |
__filename__ ] |
| |
|
21 |
!!DESCRIPTION |
| |
|
22 |
|
| |
|
23 |
|
| |
|
24 |
This tool is part of the Sambasuite. |
| |
|
25 |
|
| |
|
26 |
|
| |
|
27 |
smbspool is a very small print spooling program that sends a |
| |
|
28 |
print file to an SMB printer. The command-line arguments are |
| |
|
29 |
position-dependent for compatibility with the Common UNIX |
| |
|
30 |
Printing System, but you can use smbspool with any printing |
| |
|
31 |
system or from a program or script. |
| |
|
32 |
|
| |
|
33 |
|
| |
|
34 |
__DEVICE URI__ |
| |
|
35 |
|
| |
|
36 |
|
| |
|
37 |
smbspool specifies the destination using a Uniform Resource |
| |
|
38 |
Identifier ( |
| |
|
39 |
|
| |
|
40 |
|
| |
|
41 |
smb://server/printer |
| |
|
42 |
|
| |
|
43 |
|
| |
|
44 |
smb://workgroup/server/printer |
| |
|
45 |
|
| |
|
46 |
|
| |
|
47 |
smb://username:password@server/printer |
| |
|
48 |
|
| |
|
49 |
|
| |
|
50 |
smb://username:password@workgroup/server/printer |
| |
|
51 |
|
| |
|
52 |
|
| |
|
53 |
smbspool tries to get the URI from argv[[0]. If argv[[0] |
| |
|
54 |
contains the name of the program then it looks in the |
| |
|
55 |
__DEVICE_URI__ environment variable. |
| |
|
56 |
|
| |
|
57 |
|
| |
|
58 |
Programs using the __exec(2)__ functions can pass the URI |
| |
|
59 |
in argv[[0], while shell scripts must set the |
| |
|
60 |
__DEVICE_URI__ environment variable prior to running |
| |
|
61 |
smbspool. |
| |
|
62 |
!!OPTIONS |
| |
|
63 |
|
| |
|
64 |
|
| |
|
65 |
The job argument (argv[[1]) contains the job ID number and is |
| |
|
66 |
presently not used by smbspool. |
| |
|
67 |
|
| |
|
68 |
|
| |
|
69 |
The user argument (argv[[2]) contains the print user's name |
| |
|
70 |
and is presently not used by smbspool. |
| |
|
71 |
|
| |
|
72 |
|
| |
|
73 |
The title argument (argv[[3]) contains the job title string |
| |
|
74 |
and is passed as the remote file name when sending the print |
| |
|
75 |
job. |
| |
|
76 |
|
| |
|
77 |
|
| |
|
78 |
The copies argument (argv[[4]) contains the number of copies |
| |
|
79 |
to be printed of the named file. If no filename is provided |
| |
|
80 |
than this argument is not used by smbspool. |
| |
|
81 |
|
| |
|
82 |
|
| |
|
83 |
The options argument (argv[[5]) contains the print options in |
| |
|
84 |
a single string and is presently not used by |
| |
|
85 |
smbspool. |
| |
|
86 |
|
| |
|
87 |
|
| |
|
88 |
The filename argument (argv[[6]) contains the name of the |
| |
|
89 |
file to print. If this argument is not specified then the |
| |
|
90 |
print file is read from the standard input. |
| |
|
91 |
!!VERSION |
| |
|
92 |
|
| |
|
93 |
|
| |
|
94 |
This man page is correct for version 2.2 of the Samba |
| |
|
95 |
suite. |
| |
|
96 |
!!SEE ALSO |
| |
|
97 |
|
| |
|
98 |
|
| |
|
99 |
__smbd(8)__, and samba(7). |
| |
|
100 |
!!AUTHOR |
| |
|
101 |
|
| |
|
102 |
|
| |
|
103 |
__smbspool__ was written by Michael Sweet at Easy |
| |
|
104 |
Software Products. |
| |
|
105 |
|
| |
|
106 |
|
| |
|
107 |
The original Samba software and related utilities were |
| |
|
108 |
created by Andrew Tridgell. Samba is now developed by the |
| |
|
109 |
Samba Team as an Open Source project similar to the way the |
| |
|
110 |
Linux kernel is developed. |
| |
|
111 |
|
| |
|
112 |
|
| |
|
113 |
The original Samba man pages were written by Karl Auer. The |
| |
|
114 |
man page sources were converted to YODL format (another |
| |
|
115 |
excellent piece of Open Source software, available at |
| |
|
116 |
ftp://ftp.icce.rug.nl/pub/unix/ |
| |
|
117 |
---- |