I was executing a command "who -ms" from a CHUI application but i get below message,
It seems that who command can be executed only when we are logged directly in unix box as we have terminal.
Is there a way to get rid of this problem , or anyother command where i can get machine name of the terminal from where i am logged in?
process not attached to terminal x
xUsage: who [-AabdHilmpqrsTtuwX?] [am {i,I}] [file] x
x -A Accounting entries x
x -a All (AbdHlprTtu) options x
x -b Boot time x
x -d Dead processes x
x -H Display a header (title) x
x -l Login processes x
x -m Information about current terminal (same as 'am i' x
x -p Processes other than getty or user process x
x -q Quick (only user and host name) x
x -r Run level x
x -s Short form (suppress Activity and PID) x
x -T,w Status of tty (+ writable, - not writable, x exclusive open, ? hx
x -t Time changes x
x -u,i Activity and PID of shell x
x -X Expanded user names