NAME
smbspool - 将一个打印文件发送到一台SMB打印机
总览 SYNOPSIS
smbspool {job} {user} {title} {copies} {options} [filename]
描述 DESCRIPTION
此程序是Samba(7)套件的一部分。
smbspool 是个非常小的打印假脱机程序用于向SMB共享打印机发送打印文件的作业。命令行参数的位置是位置无关的,这样做是为了和CUPS(Common UNIX Printing System)兼容,但是你可以在任何打印系统中,在程序或者脚本中使用它。
DEVICE URI
smbspool 使用“smb”方法的统一资源标识符(“URI”,Uniform Resource Identifier)来指定操作目标。这种描述有以下这样的形式:
- *
- smb://server/printer
- *
- smb://workgroup/server/printer
- *
- smb://username:password@server/printer
- *
- smb://username:password@workgroup/server/printer
smbspool 会试图从argv[0]参数中得到URI。如果argv[0]包含了程序名的话,它将到 DEVICE_URI环境变量中取得URI。
程序中可以使用exec(2)函数来将URI传递给argv[0],shell脚本则必须在运行smbspool之前设置DEVICE_URI环境变量。
选项 OPTIONS
- *
- job参数(argv[1])包含了作业ID号,smbspool当前还没有用到。
- *
- user参数(argv[2])包含了打印用户名,smbspool当前还没有用到。
- *
- title参数(argv[3])包含了在发送打印作业时作为远程文件名传递的打印作业标题字串。
- *
- opies参数(argv[4])包含了需要打印文件的份数。如果没有提供文件名,smbspool就不使用这个参数。
- *
- options参数(argv[5])包含了打印选项(以一个字串来描述),smbspool当前还没有用到。
- *
- filename参数(argv[6])包含了要打印的文件名。如果不指定文件名则从标准输入中读取信息作为打印的内容。
版本 VERSION
此手册页是针对samba套件版本3.0的。
参见 SEE ALSO
smbd(8) 和Samba(7).
#p#
NAME
smbspool - send a print file to an SMB printer
SYNOPSIS
- smbspool {job} {user} {title} {copies} {options} [filename]
DESCRIPTION
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.
DEVICE URI
smbspool specifies the destination using a Uniform Resource Identifier ("URI") with a method of "smb". This string can take a number of forms:
- *
- smb://server/printer
- *
- smb://workgroup/server/printer
- *
- smb://username:password@server/printer
- *
- smb://username:password@workgroup/server/printer
smbspool tries to get the URI from argv[0]. If argv[0] contains the name of the program then it looks in the DEVICE_URI environment variable.
Programs using the exec(2) functions can pass the URI in argv[0], while shell scripts must set theDEVICE_URI environment variable prior to running smbspool.
OPTIONS
- *
- The job argument (argv[1]) contains the job ID number and is presently not used by smbspool.
- *
- The user argument (argv[2]) contains the print user's name and is presently not used by smbspool.
- *
- The title argument (argv[3]) contains the job title string and is passed as the remote file name when sending the print job.
- *
- 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.
- *
- The options argument (argv[5]) contains the print options in a single string and is currently not used by smbspool.
- *
- 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.
VERSION
This man page is correct for version 3.0 of the Samba suite.
SEE ALSO
smbd(8) and samba(7).