Thursday 21 May 2015

Write a shell script that reports the logging in of a specified user within one minute after he/she log in. The script automatically terminate if specified user does not log in during a specified period of time.VTU MCA UNIX LAB8B

echo "Enter user name "
read name
echo "Enter min"
read min
period=0
until who | grep -w "$name" > /dev/null
    do
   
    echo " user not loged in yet"
   
    done
    echo "he is there"

No comments:

Post a Comment