diff --git a/newset.sh b/newset.sh index 9b35e19..1eaac80 100644 --- a/newset.sh +++ b/newset.sh @@ -77,7 +77,7 @@ cat>>/etc/profile</dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` +USER_IP=\`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'\` if [ "\$USER_IP" = "" ] then USER_IP=\`hostname\`