Hi,
I am writing a small bash script to be run on remote machines. Now at one part
of this script I need to have the IP address of the remote-host to whom the
session belongs. To do this, this is what I came up with:
who -m | cut -f 2 -d '(' | cut -f 1 -d ')'
This gives me the solution. However I find it messy. Is there a better way?
Thanks in advance,
Ishaaq Chandy
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
