My access.log for one application is not rolled over.
I would like to get users count.
Right now I am doing
Since the file doesnt rotate out I have to grep for new date/
I tried to specify DATE=date "+DATE: %Y-%m-%d" in a script but grep string isnt correctly done.
How to get awk to pick the latest data and grep and wc-l out latest user logons?
Thanks,
Last edited by vbe; 09-11-2013 at 10:08 AM..
Reason: code tags...
I keep trying to use ssh shell to access my school's unix server from home and I get this error message:
"This user id is logged on too many times. Please end
some logins to reduce your total number of logins to no
more than 1. Please do so in the next 1 minutes
or you will be logged out... (3 Replies)
I have a data file in the following format (refer to input file) with multiple lines containing some information. I need an output file to loop thorough the input file with summarized information as seen below (refer to output file) ‘Date Time' and ‘Beta Id' input file values should be concatenated... (7 Replies)
Hello.
I have problem in Solaris 8.
I can logon cde with root there is no problem.
When I logon with normal user I am recieving black screen after 10 15 second login screen (cde pasword screen) coming again.
1 years ago we resolved same problem. We found a file It must be run with admin... (1 Reply)
Hi
I need to parse the file of same name which exist on different servers and calculate the count of string existed in both files.
Say a file abc.log exist on 2 servers.
I want to search for string "test" on both files and calculate the total count of search string's existence.
For... (6 Replies)
I logon with root user, then ok, but as a user logon is not, it is the login window forever ah, wishes to receive help from members of the forum, thanks very much. (2 Replies)
I have a file that needs to be parsed into multiple files every time there line contains a number 1. the problem i face is the lines are random and the file size is random. an example is that on line 4, 65, 187, 202 & 209 are number 1's so there has to be file breaks between all those to create 4... (6 Replies)
Hey
Am new to scripting in aix 5.3
I need to write a script to limit a user's logon prompt to an interactive menu based upon logon and nothing else.
Any ideas much appreciated.
:wall: (4 Replies)
I have a file which has users having different values against them in second column.
I want to set a range and get the count of users in that range.
Suppose :-
a 4
b 19
c 27
d 87
e 123
And I define the range like 1-20 , 20 -50 and so on..... Please assume the... (1 Reply)
Hi,
i have requirement to find logged in user based on process id. i have below scenario.
1. all my users will logon to unix box using ssh from windows system.
2. after successful logon they will sudo to common user. ex. sudo -su edadm
lot of users are executing jobs from edadm user and... (2 Replies)
Discussion started by: tmalik79
2 Replies
LEARN ABOUT REDHAT
zgrep
ZGREP(1) General Commands Manual ZGREP(1)NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep is used to invoke the grep on compress'ed or gzip'ed files. All options specified are passed directly to grep. If no file is speci-
fied, then the standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and
fed to grep.
If zgrep is invoked as zegrep or zfgrep then egrep or fgrep is used instead of grep. If the GREP environment variable is set, zgrep uses
it as the grep program to be invoked. For example:
for sh: GREP=fgrep zgrep string files
for csh: (setenv GREP fgrep; zgrep string files)
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO grep(1), egrep(1), fgrep(1), zdiff(1), zmore(1), znew(1), zforce(1), gzip(1), gzexe(1)ZGREP(1)