On Fri, 25 Feb 2005, Tim Jenness wrote:
> I see that make world does trigger an error message though:
>
> /stardev/bin/hlink: whoami: not found
>
> from this line:
>
> echo >"${log}" \
> "# Hypertext documents in this directory were last linked by user `whoami`
> using"
>
> I think 'whoami' is a UCB extension. On my solaris 8 box it's in
> /usr/ucb/whoami.
>
> are we meant to use something portable like
>
> who am i | awk '{ print $1 } '
Possibly, but peering at the UNIX standard it might be better to just use
the "logname" command. Anyone else got any insight on this? I notice we do
use "whoami" in other scripts (I'm the main culprit) in CCDPACK, DATACUBE
and GAIA, so it may matter for portability.
Peter.
|