Re: Sietová tlaciaren

Pavel Lisy pali na tmapy.cz
Čtvrtek Duben 30 14:27:31 CEST 1998


> Caute.
> 
> V robote mame tlaciaten HP5si(bez PS) so sietovou kartou ktorej je pridelena IP Aresa.
> Ako ju mam prosim vas definovat do printcap suboru?
##PRINTTOOL3## REMOTE 
lp|lj|ljps:\
 :sd=/var/spool/lpd/ljps:\
 :mx#0:\
 :sh:\
 :rm=laserps:\
 :rp=ljps:\
 :if=/usr/local/bin/fljps:

v /etc/hosts mam radek
192.168.1.110	laserps.tmapy.cz  laserps

Pripojuji fljps script, ktery je ale potreba upravit, nebot posila 
tisky na tiskarnu u Win95.

Ted si nejsem jisty, jestli to pujde resit jednim pruchodem, nebot 
pri remote tiskarne se zrejme nepouziji filtry (my tu mame 
poscriptovku)

Pavel


  Pavel Lisy --- system administrator (Linux, Solaris, WinNT)       
  _________                                                         
 |         |              T-MAPY s.r.o.
 |__     __|              Nezvalova 850       tel. +420 49 5513335    
    |   |                 Hradec Kralove      fax. +420 49 5513371
   M A P Y                500 02            E-mail: pali na tmapy.cz  
    |___|                 Czech Republic Europe

------------- další část ---------------
#!/bin/sh

# This script is an input filter for printcap printing on a unix machine. It
# uses the smbclient program to print the file to the specified smb-based 
# server and service.
# For example you could have a printcap entry like this
#
# smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint
#
# which would create a unix printer called "smb" that will print via this 
# script. You will need to create the spool directory /usr/spool/smb with
# appropriate permissions and ownerships for your system.

# Set these to the server and service you wish to print to 
# In this example I have a WfWg PC called "lapland" that has a printer 
# exported called "printer" with no password.

server=quido
service=hplj4p
password=""

(
echo "print -"
cat | gs -q -sDEVICE=ljet4 -sPAPERSIZE=a4 -sOutputFile=- -dNOPAUSE -
) | /usr/bin/smbclient "\\\\$server\\$service" $password -N -P > /dev/null


Další informace o konferenci Linux