Sponsored Content
Full Discussion: Scan a log file
Top Forums Shell Programming and Scripting Scan a log file Post 302277918 by nhanda on Sunday 18th of January 2009 07:16:12 PM
Old 01-18-2009
hi Rhije,

thanks for the reply but i need a script to be written for the same. Also i need a counter for the no. of times "no change has been found" in the log file & check it against "no. of errors".
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to scan only new lines added in file?

Hi, I am planning to implement a scheduled script that will go against my log files (every hour), search for a set of key words (errors, exceptions, faults etc). The script must be intelligent enough to scan only the new lines added to the log file since it last ran. I can use grep for... (3 Replies)
Discussion started by: redlotus72
3 Replies

2. Shell Programming and Scripting

File Scan

Hi everyone , i m working on Sun solaris and i have a file "smsapp.cur" which has information like this paragraph given below , there are millions of such paragraphs From:923212802736 To:923222326807 logMessage: 07-04-08 17:34:29 Getting message topup from code page default in language English... (2 Replies)
Discussion started by: Dastard
2 Replies

3. Shell Programming and Scripting

How to scan a file for literal, return 0 or 1 if found?

How can i scan a file in a UNIX script and look for a particular keyword? For example if i wanted to scan the file "lpcmp165.out" and see if it contains the term "error" or "ERROR" and then return a 0 or 1 or some indicator as such? Detail example: sqlplus -s xx/yyyyyyy#@zzz <<EOF >... (11 Replies)
Discussion started by: bobk544
11 Replies

4. Shell Programming and Scripting

File Inventory Scan

Is there such a script out there that will Analyze a folder and subfolders, getting file type utilization and file aging. A CSV file will be created with file information File,Size,Date Created,Last Modified,Last Accessed,Extension,File Type,Owner A Summary report text file will also be created... (4 Replies)
Discussion started by: seacros
4 Replies

5. Shell Programming and Scripting

Shell Script to continuously scan a log file

Hello members, I have some doubts on how to write a script that can reports success / failure of a batch job ? 1. Run a batch job: 2. Wait and search for a particular string in the Log file: tail -f log01*.txt | egrep -v "^SUCCESSFUL" echo "continue with the other tasks" ... (1 Reply)
Discussion started by: novice82
1 Replies

6. Shell Programming and Scripting

Log File Scan

I need to read the last line of a log file and save it, sleep for X minutes and read the last line again. If the line is the same, exit 1, otherwise sleep for X minutes until the last line contains 'Status: Process completed'. Can anyone offer advice here? Thanks. (2 Replies)
Discussion started by: mode09
2 Replies

7. Shell Programming and Scripting

Scan log file for errors

Hi everyone. I am still new to UNIX, and am having trouble figuring out how to create a script to scan a log file to look for errors based on a string. We run AIX 5.3, and would like the ability to report all the instances of WebSphere Broker Execution groups crashing. This script would... (8 Replies)
Discussion started by: jimbojames
8 Replies

8. Shell Programming and Scripting

Scan of log file in Linux for entries in last 15 minutes for matching a pattern

Is there any way I can do scan of log file in Linux, where the log file entries for last 15 minutes can be searched for a particular pattern. The log file entries are in below format. 2014-01-27T23:08:53.924-0500 LDAP authentication error 2014-01-27T23:08:53.934-0500 LDAP authentication... (4 Replies)
Discussion started by: anandrudran
4 Replies

9. Red Hat

Scan for new LUN and create a new file system

Hi Please I dont have a lot of redhat skills, but I need some help on creating a file system. I need to rescan for this new LUN, so I try to check existing LUNs: fdisk -l Disk /dev/sda: 299.4 GB, 299439751168 bytes 255 heads, 63 sectors/track, 36404 cylinders Units = cylinders of... (8 Replies)
Discussion started by: fretagi
8 Replies

10. Shell Programming and Scripting

Scan and remove if file infected using bash

The below bash runs clamav on all files in DIR and produces virus-scan.log. My question is the portion in bold is supposed to move the infected files, lines not OK, to /home/cmccabe/quarantine. Does the bash look correct? Thank you :). virus-scan.log Mon Jan 16 14:39:05 CST 2017... (5 Replies)
Discussion started by: cmccabe
5 Replies
xcb_xkb_get_geometry(3) 					   XCB Requests 					   xcb_xkb_get_geometry(3)

NAME
xcb_xkb_get_geometry - SYNOPSIS
#include <xcb/xkb.h> Request function xcb_xkb_get_geometry_cookie_t xcb_xkb_get_geometry(xcb_connection_t *conn, xcb_xkb_device_spec_t deviceSpec, xcb_atom_t name); Reply datastructure typedef struct xcb_xkb_get_geometry_reply_t { uint8_t response_type; uint8_t deviceID; uint16_t sequence; uint32_t length; xcb_atom_t name; uint8_t found; uint8_t pad0; uint16_t widthMM; uint16_t heightMM; uint16_t nProperties; uint16_t nColors; uint16_t nShapes; uint16_t nSections; uint16_t nDoodads; uint16_t nKeyAliases; uint8_t baseColorNdx; uint8_t labelColorNdx; } xcb_xkb_get_geometry_reply_t; Reply function xcb_xkb_get_geometry_reply_t *xcb_xkb_get_geometry_reply(xcb_connection_t *conn, xcb_xkb_get_geometry_cookie_t cookie, xcb_generic_error_t **e); Reply accessors xcb_xkb_counted_string_16_t *xcb_xkb_get_geometry_label_font (const xcb_xkb_get_geometry_request_t *reply) int xcb_xkb_get_geometry_properties_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_property_iterator_t xcb_xkb_get_geometry_properties_iterator(const xcb_xkb_get_geometry_reply_t *reply); int xcb_xkb_get_geometry_colors_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_counted_string_16_iterator_t xcb_xkb_get_geometry_colors_iterator(const xcb_xkb_get_geometry_reply_t *reply); int xcb_xkb_get_geometry_shapes_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_shape_iterator_t xcb_xkb_get_geometry_shapes_iterator(const xcb_xkb_get_geometry_reply_t *reply); int xcb_xkb_get_geometry_sections_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_section_iterator_t xcb_xkb_get_geometry_sections_iterator(const xcb_xkb_get_geometry_reply_t *reply); int xcb_xkb_get_geometry_doodads_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_doodad_iterator_t xcb_xkb_get_geometry_doodads_iterator(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_key_alias_t *xcb_xkb_get_geometry_key_aliases(const xcb_xkb_get_geometry_request_t *reply); int xcb_xkb_get_geometry_key_aliases_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_key_alias_iterator_t xcb_xkb_get_geometry_key_aliases_iterator(const xcb_xkb_get_geometry_reply_t *reply); REQUEST ARGUMENTS
conn The XCB connection to X11. deviceSpec TODO: NOT YET DOCUMENTED. name TODO: NOT YET DOCUMENTED. REPLY FIELDS
response_type The type of this reply, in this case XCB_XKB_GET_GEOMETRY. This field is also present in the xcb_generic_reply_t and can be used to tell replies apart from each other. sequence The sequence number of the last request processed by the X11 server. length The length of the reply, in words (a word is 4 bytes). deviceID TODO: NOT YET DOCUMENTED. name TODO: NOT YET DOCUMENTED. found TODO: NOT YET DOCUMENTED. widthMM TODO: NOT YET DOCUMENTED. heightMM TODO: NOT YET DOCUMENTED. nProperties TODO: NOT YET DOCUMENTED. nColors TODO: NOT YET DOCUMENTED. nShapes TODO: NOT YET DOCUMENTED. nSections TODO: NOT YET DOCUMENTED. nDoodads TODO: NOT YET DOCUMENTED. nKeyAliases TODO: NOT YET DOCUMENTED. baseColorNdx TODO: NOT YET DOCUMENTED. labelColorNdx TODO: NOT YET DOCUMENTED. DESCRIPTION
RETURN VALUE
Returns an xcb_xkb_get_geometry_cookie_t. Errors have to be handled when calling the reply function xcb_xkb_get_geometry_reply. If you want to handle errors in the event loop instead, use xcb_xkb_get_geometry_unchecked. See xcb-requests(3) for details. ERRORS
This request does never generate any errors. SEE ALSO
AUTHOR
Generated from xkb.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. XCB
2014-06-10 xcb_xkb_get_geometry(3)
All times are GMT -4. The time now is 06:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy