The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: user on
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-03-2007
ladytwo ladytwo is offline
Registered User
 

Join Date: Oct 2007
Posts: 3
user on

I am writing a script and i want to see if this user is on and when they log off. i have some of what i want but not sure if it is right. i think it is just pulling a name from file.

while true
do
if who | grep someone "file"
then break
done

what am I doing wrong?
Please help!
Reply With Quote
Forum Sponsor