Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!slxsys!ibmpcug!robobar!ronald From: ronald@robobar.co.uk (Ronald S H Khoo) Newsgroups: news.software.b Subject: Re: Problem with posting mailed articles Summary: LOGNAME not set, and who am i < /dev/null doesn't work on Xenix. Message-ID: <1991Apr12.221444.10158@robobar.co.uk> Date: 12 Apr 91 22:14:44 GMT References: <1991Apr12.034008.18680@cynic.wimsey.bc.ca> Organization: Robobar Ltd., Perivale, Middx., ENGLAND. Lines: 17 curt@cynic.wimsey.bc.ca (Curt Sampson) writes: > [volumous output of 'who am i'; summary: not attched to terminal] > anne.jones: ypmatch: not found > inews: article in /tmp/dead.article Poor Anne Jones is having difficulty figuring out who you are. It's nearly impossible to figure out your login name in a portable manner. Anne tries, but fails, mainly because the Xenix who am i < /dev/null doesn't bother to try getpwuid(getuid()). Simple fix, just put the line LOGNAME=usenet export LOGNAME at the top of whatever script is delivering the stuff to inews. There are more elegant solutions to this kind of problem though. Some people's (like mine :-) tend to use perl, but such solutions must be shoved under a bushel when Henry S is anywhere in sight :-) -- Ronald Khoo +44 81 991 1142 (O) +44 71 229 7741 (H)