HP3000-L Archives

August 1998, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Sat, 15 Aug 1998 12:47:38 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
At 10:52 13.08.98 -0700, Michael wrote:
>  In a "limited" fashion, you can utilize the 'smbclient' program
>available in the Samba/iX distribution to connect to an NT 4.0
>hosted printer, and send a file to it to be printed.  (...)

Not just NT 4.0 as target. Should also work with WfWg, Win95 et al.

  smbclient '\\yourPC\pcPrinter' -P -c 'print /some/local/file'

Does work fairly well for plain text, text with PCL, Postscript
and alike. Will need additional tricks if the local file has CCTL
information as MS spoolers won't understand the carriage control.
Bytestream files preferred but MPE file types might also work.

As Michael mentioned, it's probably not as robust as lpr/lpd. You
might need to slightly enhance the smbclient program to have it
return a status code (JCW or alike) for error checking in batch
context, for example. As such it is similar to TermType 18 on DTC.

Lars.

ATOM RSS1 RSS2