Link to home
Start Free TrialLog in
Avatar of cblazque
cblazque

asked on

Printing from Unix to Windows

I want to print in a HP laser attached
to a Windows 95 machine from Unix(under the same network)
In other words I want to print from a SparcClassic to Windows95.

I tried with samba like this

1. smbclient //machine/printer

2. print document

(the printer is already shared)

Actually I could print something (in text or postscript format)but only  came out one line from the printer.

Do I have to configure something in
smb.conf? or I have to configure something in Windows 95???

Any Idea

Thanks in advance.....

Avatar of klover
klover

Check the spooler interface on the Unix machine.  If you get output, but only one line at the top of each page, you have a CR vs CRLF problem.  The spooler is assuming that a Line Feed will also generate a Carriage Return.  There is usually a CR=CRLF option in the spooler script.
Do You have an LPD daemon running on  Windows 95?
Go to the www.hummingbird.com and download the evaluation of "InetD" from the list of evaluation products.
This has the LPD daemon and other Server daemons to be enabled on Windows platform for interoperation with UNIX.
If you have any problems installing - contact TechSupport at Hummingbird and say that you're evaluating the product. They will help you to install and configure it.
You will have it at least for 30 days working and you will know already until then how to configure it.
Avatar of cblazque

ASKER

To klover:

Exactly where can I modify what you said
?
I have no problem to print a postscript
document only text document (and it's
for the CR=CRLF option)

Thanks....
ASKER CERTIFIED SOLUTION
Avatar of klover
klover

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To klover:

This is what I found in the file:


CR=`${TPUT} cr`
[ -z "${CR}" ] && CR="\r"

FF=`${TPUT} ff`

NL="${CR}\n"


Now what??????????
When you created this "printer"  you gave it a dumb interface which is fine for your .ps files.  Try creating a second printer pointing to the same device, but use a LaserJet interface.

This article is an oldie, but a goodie.  It describes a dumb interface that converts LFs to CRLFs.
http://artemis.sco.com/ns-search/TAEXT/ext/107215.shtml?NS-search-set=/38aa1/aaaa0060_aa1908&NS-doc-offset=36&

If this doesn't work, you'll have to futz around with the existing script.  Here are some links that might help...

If you just need to convert some text files for one time printing....
http://artemis.sco.com/ns-search/TAEXT/os/104629.shtml?NS-search-set=/38aa1/aaaa005iaaa1764&NS-doc-offset=0&

You may be able to embed the awk command from the link above into the script.