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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Unix sulog weekly script

Reply to Message Icon

Name: shakeelunix
Date: March 13, 2007 at 11:44:28 Pacific
OS: AIX
CPU/Ram: 49152 Megabytes
Product: 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



Sponsored Link
Ads by Google

Response Number 1
Name: shakeelunix
Date: March 14, 2007 at 08:02:11 Pacific
Reply:

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


-1
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Unix sulog weekly script

UNIX Shell FTP script www.computing.net/answers/unix/unix-shell-ftp-script/3754.html

UNIX..basic shell script help www.computing.net/answers/unix/unixbasic-shell-script-help/8506.html

Unix c shell script www.computing.net/answers/unix/unix-c-shell-script/7274.html