#!/bin/sh #set a username USER=root until who | grep $USER > /dev/null do sleep 2 done echo -e \a echo "**** $USER has logged in !! ****" #END-SCRIPT#