I found this script on aplawrence.com which is suppose to limit user logins to 1 but it does not work. I put it in the users .profile
I am on SCO 5.0.5
IAM=`who am i | cut -d" " -f1`
COUNT=`w | cut -d" " -f1 | grep "^$IAM$" | wc -l`
[ $COUNT -gt 1 ] && exit 0
I am on SCO 5.0.5
IAM=`who am i | cut -d" " -f1`
COUNT=`w | cut -d" " -f1 | grep "^$IAM$" | wc -l`
[ $COUNT -gt 1 ] && exit 0