{"id":3768,"date":"2022-12-20T17:20:00","date_gmt":"2022-12-20T20:20:00","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/smbspool-man8\/"},"modified":"2022-12-20T17:20:00","modified_gmt":"2022-12-20T20:20:00","slug":"smbspool-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/smbspool-man8\/","title":{"rendered":"SMBSPOOL (man8)"},"content":{"rendered":"<h1 align=\"center\">SMBSPOOL<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#VERSION\">VERSION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">smbspool \u2212 send a print file to an SMB printer<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"89%\">\n<p style=\"margin-top: 1em\">smbspool {job} {user} {title} {copies} {options} [filename]<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This tool is part of the <b>samba<\/b>(7) suite.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">smbspool is a very small print spooling program that sends a print file to an SMB printer. The command\u2212line arguments are position\u2212dependent for compatibility with the Common UNIX Printing System, but you can use smbspool with any printing system or from a program or script.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>DEVICE URI<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">smbspool specifies the destination using a Uniform Resource Identifier (&#8220;URI&#8221;) with a method of &#8220;smb&#8221;. This string can take a number of forms:<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 smb:\/\/server[:port]\/printer<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 smb:\/\/workgroup\/server[:port]\/printer<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 smb:\/\/username:password@server[:port]\/printer<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 smb:\/\/username:password@workgroup\/server[:port]\/printer<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">smbspool tries to get the URI from the environment variable <b>DEVICE_URI<\/b>. If <b>DEVICE_URI<\/b> is not present, smbspool will use argv[0] if that starts with \u201csmb:\/\/\u201d or argv[1] if that is not the case.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Programs using the exec(2) functions can pass the URI in argv[0], while shell scripts must set the <b>DEVICE_URI<\/b> environment variable prior to running smbspool.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 The job argument (argv[1]) contains the job ID number and is presently not used by smbspool.<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 The user argument (argv[2]) contains the print user&#8217;s name and is presently not used by smbspool.<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 The title argument (argv[3]) contains the job title string and is passed as the remote file name when sending the print job.<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 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.<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 The options argument (argv[5]) contains the print options in a single string and is currently not used by smbspool.<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 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.<\/p>\n<h2>VERSION <a name=\"VERSION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This man page is part of version 4.14.14 of the Samba suite.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>smbd<\/b>(8) and <b>samba<\/b>(7).<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">smbspool was written by Michael Sweet at Easy Software Products.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  smbspool \u2212 send a print file to an SMB printer <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,871],"class_list":["post-3768","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-smbspool"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3768"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3768\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}