Thread: ioActivity
View Single Post
Old 12-09-2004, 02:26 PM  
Grendel
Senior Member
 
Grendel's Avatar
 
Join Date: Jul 2004
Posts: 187
Default

Yep, edit activity.sh

Code:
# usage: sh.exe activity.sh [limit]
# Prints recently logged-in users, including login time and host.

if [ $1 ]; then
  LIMIT=$1
else
  LIMIT=10
fi

./cat.exe << EOF | ./sqlite3.exe -header -column ./login.db
  SELECT l.user AS username, l.time AS 'last login time', l.ip AS host, count(*) AS 'total logins'
    FROM loginsLast l, loginsAll a 
      WHERE l.user=a.user
         AND l.user!='aaa' 
         AND l.user!='ioFTPD'   <<< INSERT USERS HERE >>> 
        GROUP BY a.user 
          ORDER by l.time desc
            LIMIT $LIMIT;
EOF
__________________
- FlashFXP v4.0 BETA (v3.7.9 Build 1401) registered
- Windows 7 x64
- McAfee Antivirus Enterprise 8.7i Patch 2 + Antispyware 8.7i
Grendel is offline   Reply With Quote