Computing.Net > Forums > Unix > Unix sulog weekly script

Unix sulog weekly script

Reply to Message Icon

Original Message
Name: shakeelunix
Date: March 13, 2007 at 11:44:28 Pacific
Subject: Unix sulog weekly script
OS: AIX
CPU/Ram: 49152 Megabytes
Model/Manufacturer: sun4u Sun Fire V1280
Comment:

Hi,
I am doing some work with sulog on a weekly basis. I want to check the logins weekly and email the output (UNIX shell script). If I don’t find any logins in a week’s time, I just want to print "no logins forund since "7 days back date". I want to check sulog file one week back, I will appreciate the help in writing the script.

Thanks
Shakeel


Report Offensive Message For Removal

Response Number 1
Name: shakeelunix
Date: March 14, 2007 at 08:02:11 Pacific
Subject: Unix sulog weekly script
Reply: (edit)

The format of the sulog is as follows and I need entries whoever logins with fcopr generic id and location of sulog is /var/adm/sulog. I have sudo access to read the file.
SU 02/01 06:10 + pts/2 t6859ms-fcropr


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Unix sulog weekly script

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software