Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!xanth!xanth.cs.odu.edu!wayne From: wayne@cs.odu.edu (C Wayne Huling) Newsgroups: comp.unix.programmer Subject: Reading termcap database other than termcap Message-ID: Date: 27 Nov 90 02:04:44 GMT Sender: usenet@cs.odu.edu (Usenet News Poster) Organization: Old Dominion University, Norfolk, VA Lines: 13 Nntp-Posting-Host: forchammer.ocean.odu.edu I have written a small program to accept the name of a printer and search the printcap for the hostmachine. I use the termcap routines supplied in the Unix PRM. Unfortunatly it reads from a environment set variable. My problem is if I set this variable "TERM" to be /etc/printcap and then run another program that needs "TERM" to be /etc/termcap then it will bomb. Is there any way of setting the file to be read from internally? Wayne -- ---> Sometimes I have evil thoughts...... ---> GC.