03-28-2008
vi /etc/hosts
Quote:
Originally Posted by
Wade Gava
Hi relatively new to unix so sorry if this is a stupid question:
How do i add a printer entry into the host file.
I know how to add the printer using sam, but i am required to add the host file entry into /etc/hosts which i am unaware of how to do.
Any help would be greatly appreciated.
Hello,
if necessary edit the host file with vi and add something like
192.168.3.63 zebra_wesn #ZEBRA Labelprinter WE Seriennummern
IP of printer queue_name #comment
Regards
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi falks,
I have the following ksh function ,which adding entry to crontab during ksh program running:
{
print "Go\c" >/dev/null 2>&1
print '0 0 * * * su - ias -c "/home/orca/core-${SCHEMA_NAME}/CLI/cleanup_BRMS.ksh"\c' >/dev/null 2>&1
print "\033:wq!" >/dev/null 2>&1
} | \crontab -e... (2 Replies)
Discussion started by: nir_s
2 Replies
2. UNIX for Dummies Questions & Answers
Could someone please tell me how to add a printer to UNIX, I've got all the detail but are not sure how to do it ... (1 Reply)
Discussion started by: kuselo
1 Replies
3. Shell Programming and Scripting
I have written this small script to add an entry to a remote /etc/hosts file which needs to be run from our central admin box and is passed one parameter $1 <hostname>
#!/bin/ksh
echo "Which host entry would you like to add to $1"
read host_to_add
echo "what is the IP address?"
read ip
... (4 Replies)
Discussion started by: hcclnoodles
4 Replies
4. Solaris
Dear Members,
My app server is running in sun solaris. When i am trying to invoke another application running in a different m/c by calling its ip aa.bb.cc.dd , i am succeeding.
But, when i maintain the same ip in etc host and try to invoke the application using the host name, it is failing.... (5 Replies)
Discussion started by: kandanathan
5 Replies
5. UNIX for Advanced & Expert Users
Hi all,sorry for my english but i don't speak it very well.
I have a problem, i need to print a file from a unix machine to a printer on another unix machine (with another host).
I think that it's possible making a connection with telnet to this machine and after to print on the machine in... (3 Replies)
Discussion started by: giugy
3 Replies
6. UNIX for Advanced & Expert Users
When adding a remote printer to my HP-UX system, it creates a file in
/var/spool/lp/sinterface/printer-name
inside it has
#!/usr/bin/sh
# /* @(#)B.11.11_LR */
# This model is for remote status operation.
/usr/sbin/rlpstat $*
Is there a way when I add this printer to have the... (1 Reply)
Discussion started by: nixie21
1 Replies
7. Red Hat
Hi masters
Is there any way to edit or delete an entry in inittab file without using vi or any editors?
We can use commands instead or any shell script ..
If any one can help deeply appreciated
Thanks a lot
sai (3 Replies)
Discussion started by: saidiya
3 Replies
8. IP Networking
Hi All,
I am trying setup a remote printer on a solaris 10 server. The printer is online and working fine is solaris 8. I have added the pritner to /etc/hosts file and /etc/printers.conf ... I need to know followings:
1. How do I find the default pritner port on the old solaris machine... (0 Replies)
Discussion started by: mohullah
0 Replies
LEARN ABOUT DEBIAN
p910nd
P910ND(8) System Manager's Manual P910ND(8)
NAME
p910nd - port 9100+n printer daemon
SYNOPSIS
p910nd [-f device] [-i bindaddr] [-bv] [0|1|2]
DESCRIPTION
p910nd is a small daemon that copies any data received on the port it is listening on to the corresponding printer port. It is primarily
intended for diskless Linux hosts running as printer drivers but there is no reason why it could not be used on diskful hosts. Port 9100
is copied to /dev/lp0, 9101 to /dev/lp1 and 9102 to /dev/lp2. The default is port 9100 to /dev/lp0.
The -f option can be used to specify a different printer device, e.g. /dev/usblp0.
The -i option can be used to specify binding to one address instead of all interfaces which is the default.
The -b option turns on bidirectional copying.
The -v option shows the version number.
INSTALLATION
p910nd can be run as a standalone daemon or from (x)inetd. It will automatically detect if it is running under (x)inetd.
A sample SysVinit script, p910nd.sh, is provided for operation as a daemon. p910nd will change its name under ps to match the printer
port, i.e. p9100d, p9101d and p9102d.
When running under (x)inetd, the /etc/inetd.conf entry should look something like this (with tcpwrappers protection):
p9101 stream tcp nowait root /usr/sbin/tcpd /sbin/p910nd
Don't forget to add an entry in /etc/services for the corresponding port.
If operating with lprng, use the host%port syntax for the printer device to send jobs to it.
If operating with CUPS, this is supported as the AppSocket protocol, also known as the JetDirect (probably TM) protocol.
If operating with classic Berkeley lpd, a sample client, client.pl, is provided. This should be installed as the ifilter (if=) in
/etc/printcap. banner.pl should be installed as the ofilter (of=) in /etc/printcap. It may be necessary to create a dummy spool file for
lpd (lp=). This file will be opened but not written to. The corresponding C versions are left as an exercise for the reader.
When running under inetd, more than one instance could be started. To avoid problems with multiple instances attempting to access the
printer at the same time, make sure that only one client is active at any one time. This can be done by designating one host as the spooler
and sending all jobs to this host. You will probably need to set up an intermediate queue anyway to provide print job filtering.
If built with USE_WRAP, it uses the libwrap library (tcpwrappers). Access control can be done with /etc/hosts.allow and /etc/hosts.deny.
The service name is p910nd.
DIAGNOSTICS
p910nd logs error messages to syslog.
SEE ALSO
printcap(5), hosts_access(5)
FILES
/var/run/p9100d.pid, /var/lock/p910nd/p9100d, /etc/hosts.allow, /etc/hosts.deny
COPYRIGHT
p910nd is under the GNU Public License Version 2
AUTHOR
Ken Yap (greenpossum ATSIGN users PERIOD sourceforge PERIOD net)
DATE
Version 0.95 February 2011
16 February 2011 P910ND(8)