Sponsored Content
Full Discussion: Need help with security
Top Forums UNIX for Dummies Questions & Answers Need help with security Post 14422 by nemex on Thursday 31st of January 2002 12:42:49 PM
Old 01-31-2002
Thanks i Got

this is what i've done

who -u > IP
sleep 10000 ( 0% cpu )
who -u > IP2
diff IP IP2 > diff1
/usr/sbin/mailx helpdesk@rtt.co.za < /home/me/diff1

question ? how do i kick this off so that it runs in the back ground

do i just

cammand -D

would that be safe.
 
ac(8)							      System Manager's Manual							     ac(8)

Name
       ac - login accounting

Syntax
       /etc/ac [ -w wtmp ] [ -p ] [ -d ] [ people ] ...

Description
       The  command  produces a printout giving connect time for each user who has logged in during the life of the current wtmp file.	A total is
       also produced.

       The accounting file is maintained by and Neither of these programs creates the file, so if it does not exist no connect-time accounting	is
       done.   To  start  accounting,  it should be created with length 0.  On the other hand if the file is left undisturbed it will grow without
       bound, so periodically any information desired should be collected and the file truncated.

Options
       -w     Specifies an alternate wtmp file.

       -p     Prints individual totals; without this option, only totals are printed.

       -d     Causes a printout for each midnight to midnight period.  Any people will limit the printout to only the specified login  names.	If
	      no wtmp file is given, is used.

Files
See Also
       last(1), lastcomm(1), login(1), utmp(5), init(8), sa(8)

																	     ac(8)
All times are GMT -4. The time now is 11:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy