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
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.
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
Summary: Hi, I've managed to create a C Shell script to get the names of the ASCII files that I want to FTP off of my remote hosts. The names of the ASCII files that I need to download from my remote hosts are...
Summary: I am new to Unix and working on some simple shell scripts..Q. Create a script file that sums the numbers passed to it as arguments on the command line and displays the results. Use the for loop co...