This shell program checks and returns the appropriate message about the logged in users in system.
list=`users` for var in $list do if [ $var == $1 ]; then echo "The given user is logged in" exit 1 fi done
No comments:
Write comments