home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14812 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.8 KB  |  45 lines

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