ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Grigory Batalov <grisxa@mail.ru>
To: community@altlinux.ru
Subject: Re: [Comm] DOSEMU LPT1
Date: Thu, 10 Apr 2003 17:46:43 +0400
Message-ID: <20030410174643.7b8d3234.grisxa@mail.ru> (raw)
In-Reply-To: <200304091237.17945.lt@server.by>

[-- Attachment #1: Type: text/plain, Size: 1380 bytes --]

On Wed, 9 Apr 2003 12:37:17 +0300
Dennis Fedotov <lt@server.by> wrote:

> подскажите, как заставить в dosemu принтер на lpt1 сконфигурировать с ключем 
> -l, т.е. чтобы принтеру передавались управляющие символы. Как не переписываю 
> global.conf, 
> команда dosemu.bin -h2 -F /etc/dosemu/global.conf выдает:
> 
> LPT1 command "lpr  -Plpt %s"  timeout 20  device ""  baseport 0x378
> LPT2 command "lpr  -l -P lpt %s"  timeout 20  device ""  baseport 0x278
> 
> т.е. если на первый порт отсылать файлы с управляющими символами то:
> lpr: unable to print file: client-error-document-format-not-supported
> 
> а на второй нормально печатает т.к. есть ключ -l. Программы из-за этого 
> переделывать бессмысленно, т.к. их много а я один ;-).
> Может каким другим способом это сделать? Что-то вроде перенаправить печать в 
> самом dos (mode не предлагать).

  Да, именно так. Я когда-то писал такую переключалку,
  под dosemu она тоже заработала. (См. аттач.)

  Если в ~/.dosemurc указано $_printers = "lpt",
  то из-под dosemu говорим:
  c:\> devswap LPT1 LPT2

  Если $_printers = "lpt1 lpt2", то
  c:\> devswap LPT1 LPT3
  (принтеры почему-то задваиваются: первая пара -- без "-l",
   вторая - с "-l") 

  Конечно, не забываем приписать -l в global.conf и запускаем
  как dosemu -F global.conf.

-- 
 Баталов Григорий,
 группа техподдержки
 ОАО "Ковдорский ГОК"
 т. +7 (81535) 76225

[-- Attachment #2: devswap.tgz --]
[-- Type: application/x-gzip, Size: 1875 bytes --]

  parent reply	other threads:[~2003-04-10 13:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-09  9:37 Dennis Fedotov
2003-04-09 13:20 ` Grigory Batalov
2003-04-10 13:46 ` Grigory Batalov [this message]
2003-04-11  7:44   ` Dennis Fedotov
2003-04-11 12:49     ` Grigory Batalov

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=20030410174643.7b8d3234.grisxa@mail.ru \
    --to=grisxa@mail.ru \
    --cc=community@altlinux.ru \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git