Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/etc/hosts file

Status
Not open for further replies.

rumblestiltskin

IS-IT--Management
Mar 21, 2003
2
US
Hello
I'm trying to use multiple parallel ports for sco unix 5.0.5 on a dell poweredge 4500. I'm using jetdirect170x for print servers / the problem is after using the 3 parallel lines / i believe I can't create anymore parallel lines without installing another card. Had 2 ideas about how to avoid buying another card / the printing I'm doing is very low volume / and would like to try to use the same lp port for more than 1 jetdirect.
The first idea involved switching out the /etc/hosts file with the station running before each print
example (using system call using rmcobol)
(inside hosts file)
192.0.0.194 jetdirect4

192.0.0.196 jetdirect5
192.0.0.196 lp2

and would switch this with host file like below
192.0.0.194 jetdirect4
192.0.0.194 lp2

192.0.0.196 jetdirect5

******************************
and also switch out lp2 file in
/var/spool/lp/admins/lp/interfaces with only before and after change listed below

PERIPH=jetdirect5

to

PERIPH=jetdirect4

********************

had permissions problems tried multiple things / decided it would be better to just have some simple
if

fi

script in /etc/hosts file and
/var/spool/lp/admins/lp/interfaces/lp2 file

need some clarification on using global variables
and instructions or link toward some basic if fi script
explaining it

thanks

 
i'm confused....why would you not just create another print queue to go to the other ip?

what do local parallel ports have to do with jetdirect print servers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top