Hi
I'm using lpr to print out files generated by an ancient DOS program. I
have a batch file that uses Cygwin OpenSSH to send to a printer:
type %1 | ssh server lpr -PLaserjet
Now the DOS program uses extended ASCII 09Ch for '£' symbols, now
printing as little rectangles.
I believe SSH is
On 25/05/11 09:35, Tim Allen wrote:
Hi
I'm using lpr to print out files generated by an ancient DOS program. I
have a batch file that uses Cygwin OpenSSH to send to a printer:
type %1 | ssh server lpr -PLaserjet
Now the DOS program uses extended ASCII 09Ch for '£' symbols, now
printing as
On 25/05/11 09:35, Tim Allen wrote:
Hi
I'm using lpr to print out files generated by an ancient DOS program. I
have a batch file that uses Cygwin OpenSSH to send to a printer:
type %1 | ssh server lpr -PLaserjet
Now the DOS program uses extended ASCII 09Ch for '£' symbols, now
printing as
Hi John
On 25/05/11 10:23, John Carlyle-Clarke wrote:
On 25/05/11 09:35, Tim Allen wrote:
Hi
I'm using lpr to print out files generated by an ancient DOS program. I
have a batch file that uses Cygwin OpenSSH to send to a printer:
type %1 | ssh server lpr -PLaserjet
Now the DOS program uses
Hi John,
I agree, iconv(1).
VSpike wrote:
type %1 | ssh server bash -c cat | iconv -f IBM850 -t UTF8 | lpr -PLaserjet
Why the cat? ;-)
$ dc -e 16i666F6F9C6261720AP | iconv -f ibm850 -t utf8
foo£bar
$
It may be that CUPS lets one specify the incoming charset too but I
didn't
Hi Ralph
On 25/05/11 10:47, Ralph Corderoy wrote:
Hi John,
I agree, iconv(1).
VSpike wrote:
type %1 | ssh server bash -c cat | iconv -f IBM850 -t UTF8 | lpr -PLaserjet
Why the cat? ;-)
Going through SSH, it's not happy without it:
C:\type JUNK.S0 | ssh server /bin/bash -c iconv -f
Hi Ralph
On 25/05/11 12:16, Ralph Corderoy wrote:
and -c takes just the next argument as the command to run, here tr. The
following arguments are used to set the positional parameters, $1, $2,
etc., which aren't used in this case. tr grumbles as seen above when
run with no arguments. Since
Hi,
So bash sees an argv[] of
bash
-c
tr
f
g
and -c takes just the next argument as the command to run, here tr.
The following arguments are used to set the positional parameters, $1,
$2, etc., which aren't used in this case.
I'm wrong there. They're used to set
On Wed, 2011-05-25 at 10:47 +0100, Ralph Corderoy wrote:
It may be that CUPS lets one specify the incoming charset too but I
didn't see anything obvious. Locale environment variables perhaps?
It used to be the case that you could specify it like this:
lp -o
9 matches
Mail list logo