![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Users in AIX | Lost in AIX | AIX | 3 | 06-04-2007 10:44 AM |
| Users In AIX | Lost in AIX | UNIX for Dummies Questions & Answers | 1 | 05-24-2007 12:12 PM |
| Users on AIX 5.2 | aldowsary | AIX | 4 | 11-06-2006 06:30 PM |
| Users | catwomen | HP-UX | 1 | 10-12-2006 05:11 PM |
| do i need these users? | csaunders | SUN Solaris | 3 | 04-11-2006 10:45 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
look for users to be looged on or off
what am i doing wrong here's code. i have a file that has names of users and i want to know when they log on and off.
while true do for X in "friends1" do if who | grep "$X" then echo "$X is logged in" else sleep 5 fi echo who > on if [ $X -ne on] then echo "$X is logged off" else else sleep 5 fi done done |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|