From: Michele Andreoli (m.andreoli@tin.it)
Date: Fri Oct 05 2001 - 13:15:03 CEST
On Fri, Oct 05, 2001 at 11:18:03AM +0100, Jordi Perdigo nicely wrote:
> Hi all,
>
> I'm new to linux (and mulinux), and I have some basic questions:
>
> a) Is it possible that mulinux manage two or more printers as a
> printserver for a windoze LAN?
>
> b) Where can I put escape sequences so they are send to the printer
> before starting each print job ??
>
>
Take a look to the file /etc/samba/printers:
[lp1]
comment = Direct to LPT1
browseable = yes
printable = yes
path = /tmp
public = yes
admin users = nobody
writable = no
create mode = 0700
print command = wave -c 440 1; cat %s >/dev/lp0; rm %s;
lprm command = rm %s
lpq command = echo "No entries"; return 0
[lp2]
comment = Direct to LPT2
browseable = yes
printable = yes
path = /tmp
public = yes
admin users = nobody
writable = no
create mode = 0700
print command = wave -c 440 1; cat %s >/dev/lp1; rm %s;
lprm command = rm %s
lpq command = echo "No entries"; return 0
You can replace the "wave" command with a script able to emit your
escape code:
escape_code > /dev/lp0
The command escape_code is
----------------------------
#!/bin/sh
expr c 12 # emits 12 as binary character
expr c 38
expr c 254
.....
-----------------------------
The "expr" command in muLinux is not standard at all. It is able to do
decimal to hex,octal conversions.
Maybe, even "printf" can format characters for this purpose.
Michele
-- I keep trying to locate a meeting of Quantum Physicists. But everytime they set a meeting time, the location changes. And vice versa -- Anonymous --------------------------------------------------------------------- To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk For additional commands, e-mail: mulinux-help@sunsite.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:20 CET