Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!munnari.oz.au!metro!pta!yarra!kenj From: kenj@yarra.oz.au (Ken McDonell) Newsgroups: comp.sys.pyramid Subject: Re: How do you turn lastcomm on? Message-ID: <64026@yarra.oz.au> Date: 17 Jul 90 02:37:13 GMT References: <856@massey.ac.nz> Organization: Pyramid Technology Corp PL, Melb., Australia Lines: 26 KSpagnol@massey.ac.nz (Ken Spagnolo) writes: >(sorry if I've missed something obvious here...) >I did a lastcomm and found that the most recent entry was >last week. Since we haven't been running accounting, I >turned it on, with "accton filename", as the superuser. >Filename is growing, but lastcomm reports nothing new. >(I was told to start accton in the att universe, but >have tried both with no luck). The man page says little >about where lastcomm gets its info. Anyone know what >I'm doing wrong? Thanx. lastcomm has the pathname /usr/adm/pacct hard wired into it :-) [ actually is searches /usr/adm/pacct, then /usr/adm/pacct? where ? starts at the maximum value for which a file can be found and then counts down to 1 ] You'll have to start accounting with the default file name, else make /usr/adm/pacct a symbolic link to the place where you are accumulating the process accounting data (unfortunately, the latter approach will tend to break the 4am process accounting cleanup scripts). -- Ken McDonell E-mail: kenj@pyramid.com kenj@yarra.oz.au Performance Analysis Group Phone: +61 3 820 0711 Pyramid Technology Corporation Disclaimer: I speak for me alone, of course.