I want to find out which machine I have logged in to my current terminal from. But "who -m" does not work. It does on Linux, but not on Solaris. Any ideas what I might be doing wrong?
myhost2:/home/myuser> who
myuser pts/1 Aug 9 07:35 (myhost.mydomain.com)
myuser pts/2 Aug 9 08:42 (myhost.mydomain.com)
myuser pts/3 Aug 9 08:42 (myhost3.mydomain.com)
myhost2:/home/myuser> who -m
myuser pts/2 Aug 9 08:42
myhost2:/home/myuser> who am i
myuser pts/2 Aug 9 08:42
myhost2:/home/myuser> which who
/usr/bin/who
myhost2:/home/myuser> alias who
who: alias not found
myhost2:/home/myuser> uname -a
SunOS myhost2 5.10 Generic_138889-08 i86pc i386 i86pc
myhost2:/home/myuser> tty
/dev/pts/2
myhost2:/home/myuser> TTY=$(tty | cut -c 6-);who | grep "$TTY " | awk '{print $6}' | tr -d '()'
myhost.mydomain.com