![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Users in AIX | Lost in AIX | AIX | 3 | 06-04-2007 02:44 PM |
| Users In AIX | Lost in AIX | UNIX for Dummies Questions & Answers | 1 | 05-24-2007 04:12 PM |
| Users on AIX 5.2 | aldowsary | AIX | 4 | 11-06-2006 10:30 PM |
| Users | catwomen | HP-UX | 1 | 10-12-2006 09:11 PM |
| do i need these users? | csaunders | SUN Solaris | 3 | 04-11-2006 02:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|