Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!linus!raybed2!rayssd!anomaly!mpd From: mpd@anomaly.sbs.com (Michael P. Deignan) Newsgroups: comp.unix.xenix.sco Subject: Re: whoami? Message-ID: <993@anomaly.sbs.com> Date: 1 Jan 91 21:48:09 GMT Organization: Small Business Systems, Inc., Esmond, RI 02917 Lines: 26 From: article <6537@crash.cts.com> : >What I want is something similiar to the BSD/SunOS whoami. For example, in a >.cshrc file, I want to be able to do this: > >if (`whoami` == "root") then > set prompt = "#" >else > set prompt = "%" >endif UUCP: anomaly!~/bsd/whoami.tar.Z This is the whoami program from the BSD sources slightly modified to work under XENIX. It will compile into "whoamireally", which you can use in your script. Consult the SCO Ported Software Compendium for appropiate anonymous UUCP information. MD -- -- Michael P. Deignan / Sex is hereditary. If your -- Domain: mpd@anomaly.sbs.com / parents never had it, chances -- UUCP: ...!uunet!rayssd!anomaly!mpd / are you won't either... -- Telebit: +1 401 455 0347 /