home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!usc!cs.utexas.edu!torn!watserv2.uwaterloo.ca!maxwell.uwaterloo.ca!gordon
- From: gordon@maxwell.uwaterloo.ca (Gordon R. Strachan)
- Subject: Re: utils wanted: talk[d], gcc, printcap->lpadmin, tip, slip
- Message-ID: <C0rvAB.I84@watserv2.uwaterloo.ca>
- Sender: news@watserv2.uwaterloo.ca
- Organization: University of Waterloo
- References: <21160@ucdavis.ucdavis.edu> <1993Jan12.184807.23819@alchemy.chem.utoronto.ca>
- Date: Wed, 13 Jan 1993 03:06:10 GMT
- Lines: 33
-
- In article <1993Jan12.184807.23819@alchemy.chem.utoronto.ca> system@alchemy.chem.utoronto.ca (System Admin (Mike Peterson)) writes:
- >In article <21160@ucdavis.ucdavis.edu> cccbrian@othello.ucdavis.edu (Brian C Hill) writes:
- >>
- >> I am looking for several utilities for 9000/400's running
- >>7.0 and 8.0. I have checked the faq, but it makes no reference to
- >>any of them:
- >> b) A talk and talk daemon for the hp.
- >>
- >> e) xbiff - not that big a deal. Trying to compile X11r4
- >> programs outside of the sources can be a big hassle.
- >
- >I put these on the iworks.ecn.uiowa.edu ftp node a while ago. Do NOT
- >try to use talk that has not be modified to deal with the HP-UX utmp
- >file structure, although it will appear to work for a while.
-
- If it is the same version of talkd I was ported then its not a big change
- to get it to work. All you have to do is alter the find_user routine to
- detect dead processes and skip them. My code looks like this (stolen from
- the fingerd code I had).
-
- while (fread((char *) &ubuf, sizeof ubuf, 1, fd) == 1)
- if (SCMPN(ubuf.ut_name, name) == 0) {
- #ifdef hpux
- if(ubuf.ut_type != USER_PROCESS){
- if(debug)
- syslog(LOG_INFO,"Skipping utmp entry for %s",name);
- continue;
- }
- #endif
-
- Gordon
-
-
-