script to specify the name of the user to be checked, the frequency in seconds at which the script should check. If a checking frequency is not specified, it should default to 60 seconds
So far I have got
frequency=$0
user=$1
#!/bin/sh
while [ $* -gt 60 ]
do
who|grep $1 > /dev/null
if [ $? -z 0 ]
then
echo "users $1 is logged"
break;
else
echo "waiting"
sleep 10
fi