Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- #
- # ********************************************************************
- # * *
- # * Week 6 Script Assignment - a basic script to show the # of users *
- # * logged in to the student server. *
- # * *
- # ********************************************************************
- #
- # by: bvs245
- #
- #
- echo "let's see how many users are currently logged on to the student server"
- #
- sleep 2
- echo
- set `who | wc -l`
- users=$1
- if [ "$users" -lt 9 ]
- then
- echo "There are less than 10 users currently signed on."
- elif [ "$users" -lt 11 ]
- then
- echo "There are currently "$users" users signed on the server"
- fi
- #
- #
- # end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement