public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Frantisek Hanzlik <franta@hanzlici.cz>
To: Vedran Vucic <vedran.vucic@gmail.com>
Cc: Andrew Joakimsen <joakimsen@gmail.com>,
	Mike McCarty <Mike.McCarty@sbcglobal.net>,
	linux-msdos <linux-msdos@vger.kernel.org>
Subject: Re: printing
Date: Sat, 27 Nov 2010 16:44:32 +0100	[thread overview]
Message-ID: <4CF12760.8010206@hanzlici.cz> (raw)
In-Reply-To: <AANLkTikE6Qq6inJdGN0gXaYah+mku+y54ofkpAU1D7qw@mail.gmail.com>

Vedran Vucic wrote:
> Hello,
> 
> When I applied what you suggested and compiled GhostPCL I got the
> following error message when I started dosemu:
> root:# dosemu
> In file included from built-in global.conf:122
>                  from :122
> Error in /etc/dosemu/dosemu.conf: (line 363) syntax error
> Error in /etc/dosemu/dosemu.conf: (line 363) unrecognized command 'sOutputFile'
> Error in /etc/dosemu/dosemu.conf: (line 363) unrecognized command
> '"|lpr -P Laserprinter"'
> 3 error(s) detected while parsing the configuration-file
> 
> My global.conf is here:
> http://pastebin.ca/2003520
> 
> My dosemu.conf is here:
> 
> http://pastebin.ca/2003522

>>
>> Hi Vedran, here Andrew and others tried help You and it seem for me as
>> You ignore them. Things are probably simple:
>>
>> - You can print to any printer either:
>>  1) application is capable sent output in printer language
>>  2) or there is PPD Linux driver and app is capable sent output in
>> postscript
>>  3) or there is PPD Linux driver and you can convert application output
>> to postscript
>>
>> You must be clear which above method is possible, and thus you need
>> know which output format your application can produce - until now I
>> nowhere in your post saw this information.
>>
>> - your Laserjet 1020 printer isn't postscript printer, but is supported
>> in Linux - that means Linux print driver is able convert input
>> postscript job to printer language.
>>
>> - is very few DOS apps, which can output in postscript, and probably
>> none of them know ZjStream protocol. But usually they can print to PCL
>> printer. Then for me seems best way (and maybe just one) for you:
>>
>> 1)- configure your app to print to PCL printer
>> 2) configure Linux printer with right Linux driver (foo2zjs, you likely
>> already have it, when you can print from Linux apps)
>> 3) configure DOSEMU printing for convert PCL to PS, as wrote Andrew
>> before, or as (simple way, without e-mailing):
>> $_lpt1='pcl6 -sDEVICE=pdfwrite -dNOPAUSE -sPAPERSIZE=a4
>> -sOutputFile="|lpr -P YourPrinter1" -'
>> $_lpt2='pcl6 -sDEVICE=pdfwrite -dNOPAUSE -sPAPERSIZE=a4 -sOutputFile=-
>> -|lpr -P YourPrinter2'
>>
>> "pcl6" command is from GhostPCL package, which is available at:
>> http://www.artifex.com/downloads/
>>
>> When You will wish examine your app output, you can configure its output
>> to file:
>> $_lpt1 = "cat >/tmp/MyAppOutput"

Hello Vedran,
both lines in my post starting "$_lpt1=..." and "$_lpt2=..." are wrapped
by mail client, thus part

-sOutputFile="|lpr -P Laserprinter"

should be at end of previous line (and this must be uncommented, of course).
And You have omitted postrophe sign at its end. Entire line must end
with apostrophe "'" - all after

$_lpt1=

is command, which is run by dosemu and at its stdin dosemu pushes print
job from dos app (see dosemu doc). And entire this command is escaped
with apostrophes (').

Franta

  reply	other threads:[~2010-11-27 15:44 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18 23:18 printing Vedran Vucic
2010-11-18 23:52 ` printing Ivan Baldo
2010-11-19  0:02   ` printing Vedran Vucic
2010-11-19  0:14     ` printing Ivan Baldo
     [not found]       ` <AANLkTin8-qGJ12--1RdfPT-sFB9=dS6Qx11SayLUda+a@mail.gmail.com>
2010-11-20 12:49         ` printing Ivan Baldo
2010-11-20 20:38           ` printing Vedran Vucic
2010-11-22 11:17             ` printing Paul Crawford
     [not found]           ` <AANLkTimV3u_wcGxv+p=aBRqEtkfgyXpkgiTS8H3srAWC@mail.gmail.com>
2010-11-22 23:32             ` printing Ivan Baldo
2010-11-22 23:54               ` printing Mike McCarty
2010-11-23  7:30               ` printing Vedran Vucic
2010-11-23  8:54                 ` printing Andrew Joakimsen
2010-11-23 18:36                   ` printing Vedran Vucic
2010-11-23 19:58                     ` printing Mike McCarty
2010-11-23 22:48                       ` printing Vedran Vucic
2010-11-26  1:15                         ` printing Andrew Joakimsen
2010-11-26  7:56                           ` printing Vedran Vucic
2010-11-26 10:31                             ` printing Frantisek Hanzlik
2010-11-27  7:42                               ` printing Vedran Vucic
2010-11-27 15:44                                 ` Frantisek Hanzlik [this message]
2010-11-27 16:10                                 ` printing Frantisek Hanzlik
2010-11-27 16:37                                   ` printing Vedran Vucic
2010-11-27 17:44                                     ` printing Frantisek Hanzlik
2010-11-27 18:53                                       ` printing Vedran Vucic
2010-11-27 20:08                                         ` printing Frantisek Hanzlik
2010-11-27 21:12                                           ` printing Vedran Vucic
2010-11-28  2:20                                             ` printing Frantisek Hanzlik
2010-11-29  6:10                                               ` printing Vedran Vucic
2010-11-29  7:09                                                 ` printing Frantisek Hanzlik
2010-11-19  7:11 ` printing Andrew Joakimsen
2010-11-19 11:35   ` printing Vedran Vucic
2010-11-29 18:39 ` printing Ken Heard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CF12760.8010206@hanzlici.cz \
    --to=franta@hanzlici.cz \
    --cc=Mike.McCarty@sbcglobal.net \
    --cc=joakimsen@gmail.com \
    --cc=linux-msdos@vger.kernel.org \
    --cc=vedran.vucic@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox