Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Accounting for users ' time

Accounting for users ' time

2005-05-05       - By Margaret Doll

 Back
We need to charge our users for their time on certain of our systems
and don't have the money to buy commercial software.

We are trying to use the basic accounting system that is already
available on RedHat systems.
A few of the systems on which we need accounting are at  2.4.18-26.7.x;
we are upgrading them to
2.4.21-27.0.4.EL

Why does the output from the ac program not agree with the output from
the last command for a specific user?

We want only to charge the person for a login session at the console,
from login to logout.  Is there a way to pick out those times from jobs
that the user might have left running in the background or jobs that
he/she starts remotely?


[root@(protected) log]# ac -p -f user1mp.1 | grep user1
        user1                                   0.71


[root@(protected) log]# last -f user1mp.1 | grep user1
user1       pts/1                         Thu Apr 28 17:34 - 20:39  
(03:05)
user1       pts/0                         Thu Apr 28 17:34 - 17:41  
(00:07)
user1       pts/1                         Thu Apr 21 14:45 - 15:27  
(00:42)
user1       pts/0                         Thu Apr 21 14:45 - 14:53  
(00:08)
user1       pts/1                         Tue Apr 19 17:28 - 18:53  
(01:24)
user1       pts/0                         Tue Apr 19 17:28 - 17:35  
(00:07)
user1       pts/2                         Tue Apr  5 18:42 - 19:31  
(00:48)
user1       pts/0                         Tue Apr  5 18:42 - 18:47  
(00:05)
user1       pts/2                         Tue Apr  5 18:16 - 18:42  
(00:25)
user1       pts/0                         Tue Apr  5 18:16 - 18:22  
(00:06)
user1       pts/2                         Tue Apr  5 09:35 - 11:03  
(01:27)
user1       pts/0                         Tue Apr  5 09:35 - 09:42  
(00:07)
user1mp.1 begins Fri Apr  1 08:14:21 2005
[root@(protected) log]# last -f user1mp.1 | grep user1 | grep "ps/0"
[root@(protected) log]# last -f user1mp.1 | grep user1 | grep "pts/0"
user1       pts/0                         Thu Apr 28 17:34 - 17:41  
(00:07)
user1       pts/0                         Thu Apr 21 14:45 - 14:53  
(00:08)
user1       pts/0                         Tue Apr 19 17:28 - 17:35  
(00:07)
user1       pts/0                         Tue Apr  5 18:42 - 18:47  
(00:05)
user1       pts/0                         Tue Apr  5 18:16 - 18:22  
(00:06)
user1       pts/0                         Tue Apr  5 09:35 - 09:42  
(00:07)
 

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Earn $52 per hosting referral at Lunarpages.