...and then Michael Lake said:
> So what I want is a unix command to tell me the current
> user of that script ie who invoked it.
> An apropos uid showed there were functions like getuid but
> they arent suitable for calling up in a sh script.
To which I declare that the most obfuscated solution wins the approval of
one's peers. Or, at least, me.
grep $HOME /etc/passwd | awk -F : '{ readline; print $1 }'
Consider the gauntlet thrown.
Peter
[EMAIL PROTECTED]
--
Twyla: I'm afwaid of the monster in the cellar, Thusan. It's going to
eat me up.
Susan: What have I told you about trying to sound ingratiatingly cute,
Twyla?
Twyla: You said I mustn't. You said that exaggerated lisping is a hanging
offence and I only do it to get attention.
-- (Terry Pratchett, Hogfather)
PGP signature