Adding printer entry into host file


 
Thread Tools Search this Thread
Operating Systems HP-UX Adding printer entry into host file
# 1  
Old 03-26-2008
Data Adding printer entry into host file

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.
# 2  
Old 03-27-2008
could I ask why you would do this?

Remote (associated print-server) or Network (direct IP) printers do not need to be added to your host file.

I believe in keeping host file clean and simple.
# 3  
Old 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
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. IP Networking

Remote printer setup on solaris 10 host

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

2. Red Hat

Adding or deleting an entry in /etc/inittab without using vi editrors or any editor.

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

3. UNIX for Advanced & Expert Users

HP-UX adding printer

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

4. UNIX for Advanced & Expert Users

Unix: print on printer on another machine (host)

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

5. Solaris

etc host entry problem

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

6. Shell Programming and Scripting

adding a host entry on another machine

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

7. UNIX for Dummies Questions & Answers

Adding a Printer

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

8. Shell Programming and Scripting

Adding entry into crontab in ksh program

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
Login or Register to Ask a Question