Subject: | |
From: | |
Reply To: | |
Date: | Sat, 15 Aug 1998 12:47:38 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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.
|
|
|