This directory contains:

AAA_README.TXT          This file
FINDWINPRINTERS.COM     Use SMBCLIENT to locate printers
                        and add them to the SYS$LOGIN:WINPRINT.DAT
                        file.
PRINTWINDOWS.COM        Print a postscript file to a printer listed
                        in SYS$LOGIN:WINPRINT.DAT using SMBCLIENT.

These procedures may be used with the SMBCLIENT program from the SAMBA
package to enable users to print postscript files to printers attached
to Windows workstations.  On Seqaxp SMBCLIENT was produced from a re-port
of a 1.9.19 CVS Samba distribution, the "standard" VMS port of Samba
may need to be tweaked slightly in order to work with these procedures.
In any case, you will need to have SAMBA partially installed, at least
to the extent that a SMB.CONF file is present, and a SAMBA_ROOT directory
structure and matching logical must exist.

The Windows printers must be "shared", and a valid username/password for
the remote machine must exist.  Usage is: 

$ @FINDWINPRINTERS  machinename username password
$ @PRINTWINDOWS     filename [printername]

If the second parameter is not supplied the default printer, which is
the first printer in SYS$LOGIN:WINPRINT.DAT is used.  If the file's
type is not ".PS" then it is assumed to be a text file, and is converted
to postscript before it is printed.

Since passwords are stored in SYS$LOGIN:WINPRINT.DAT that file is set so
that neither world nor group access is permitted.

Misconfigured Windows machines (is there any other kind?) may misbehave
in several ways.   For instance, they may not show up in WINS, which you
can work around by putting entries in the LMHOSTS file in the [.LIB]
directory.  Even then they may not want to talk though.  About 75% of the
Windows machines I've examined will talk to SMBCLIENT, and the rest won't.

18-FEB-1999

David Mathog
mathog@seqaxp.bio.caltech.edu
Manager, sequence analysis facility, biology division, Caltech 
