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