Sponsored Content
Top Forums Shell Programming and Scripting Pull out information from output logs Post 302908326 by Nagesh_1985 on Monday 7th of July 2014 12:42:03 AM
Old 07-07-2014
The IP address list I have is going to be a static one. It will not change. That will be used like kind of a master file.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

pull xml's from logs

Hi Frnds I Want to pull xml's from logs based on the below condition.In each log having so many xml's it's taking so much of time to search all logs manually...can u please provide solution USER:ECMINT CONV:GETARPLNICHUBTST <CardNbr>376703134104004</CardNbr> </Envelope> Response XML:... (3 Replies)
Discussion started by: pb18798
3 Replies

2. UNIX for Dummies Questions & Answers

Logs: getting information from them?

I have some log files and would like to 'strip' some information from them. I would like to take the time: time="Mon Oct 20 01:36:21 BST 2008" and another line that occurs under each time stamp. Does anyone know how I could do this? Many thanks. (5 Replies)
Discussion started by: Sepia
5 Replies

3. Shell Programming and Scripting

cant get perl to pull information right

Hello, I cant get the perl script to pull the information from Sark DNS 4.X Options ACL Templates= and other= Can someone look at the script to see why and fix it please. FYI..Under Sark DNS 4.x ACL Templates= and other= has an indent/tab, not sure if thats the reason my the script... (24 Replies)
Discussion started by: richsark
24 Replies

4. UNIX for Advanced & Expert Users

using txr to extract information from output

am using txr command (txr 1097) on a process that generates the following output. Im trying to extract the 13th field from the highlighted string. it is delimited by '?'. The 13th field corresponds to the '0' (in bold). can you let me know how I can extract the 13 th field please? ... (1 Reply)
Discussion started by: pazman
1 Replies

5. Shell Programming and Scripting

Output from Logs

Hello All, I have created a script to capture logs on every day at every 3 Min.Please find in attach.So my goal is to mail all the logs to myself for pertical date.So can anyone guide me how can i this on the basis of the attached logs. Regards Ankit (0 Replies)
Discussion started by: ajaincv
0 Replies

6. Shell Programming and Scripting

Take the input from output logs

Hi, If I have loads of logs like below and I am interested to print the requests(lines) which have taken more than 1000 ms. In this case how could I print the two highlighted lines ? abc.log reqquest id232342 , adfghfasdfsaf, TIME=30 reqquest id11111 , asdfdfghdffsaf, TIME=54 reqquest... (0 Replies)
Discussion started by: nariwithu
0 Replies

7. Shell Programming and Scripting

Take the input from output logs

Hi, If I have loads of logs like below and I am interested to print the requests(lines) which have taken more than 1000 ms. In this case how could I print the two highlighted lines ? abc.log reqquest id232342 , adfghfasdfsaf, TIME=30 reqquest id11111 , asdfdfghdffsaf, TIME=54 reqquest... (4 Replies)
Discussion started by: nariwithu
4 Replies

8. Shell Programming and Scripting

Expect doesn't output the logs

(qemu) migrate -d tcp:192.168.122.1:4444 (qemu) info migrate capabilities: xbzrle: off Migration status: completed total time: 4425 milliseconds downtime: 3 milliseconds transferred ram: 130338 kbytes remaining ram: 0 kbytes total ram: 1057152 kbytes duplicate: 232613 pages normal:... (0 Replies)
Discussion started by: yanglei_fage
0 Replies

9. Shell Programming and Scripting

[Solved] How can I pull specific information from PS?

I need to grab information from the output of the ps command. For each line of ps output that contains _progres -b I need to get the word that follows -p. The "-p" can be anywhere after "_progres -b". Using grep to select the correct lines is no problem (e.g. ps -ef|grep "_progres \-b|grep -v... (3 Replies)
Discussion started by: Papa Lee
3 Replies

10. Shell Programming and Scripting

Get specific information from output

Hello community, I'm going crazy to analize an output via shell script and then get some information from it, here is the output: Slot 2 - MMU2 H, RAU2 X 15/A01 XPIC Enabled Autorestore Unknown Slot 3 - MMU2 H, RAU2 X 15/A01 XPIC ... (7 Replies)
Discussion started by: Lord Spectre
7 Replies
XICHANGEHIERARCHY(3)													      XICHANGEHIERARCHY(3)

NAME
XIChangeHierarchy - change the device hierarchy. SYNOPSIS
#include <X11/extensions/XInput2.h> Status XIChangeHierarchy( Display *display, XIAnyHierarchyChangeInfo *changes, int num_changes); display Specifies the connection to the X server. num_changes Specifies the number of elements in changes. changes Specifies the changes to be made. DESCRIPTION
XIChangeHierarchy modifies the device hierarchy by creating or removing master devices or changing the attachment of slave devices. If num_changes is non-zero, changes is an array of XIAnyHierarchyChangeInfo structures. If num_changes is equal or less than zero, XIChangeHierarchy does nothing. XIChangeHierarchy processes changes in order, effective immediately. If an error occurs, processing is aborted and the error is reported to the client. Changes already made remain effective. The list of changes is any combination of XIAnyHierarchyChangeInfo. The type of a hierarchy change can be XIAddMaster, XIRemoveMaster, XIAttachSlave or XIDetachSlave. typedef union { int type; XIAddMasterInfo add; XIRemoveMasterInfo remove; XIAttachSlave attach; XIDetachSlave detach; } XIAnyHierarchyChangeInfo; typedef struct { int type; /* XIAddMaster */ char* name; Bool send_core; Bool enable; } XIAddMasterInfo; typedef struct { int type; /* XIRemoveMaster */ int deviceid; int return_mode; int return_pointer; int return_keyboard; } XIRemoveMasterInfo; typedef struct { int type; /* XIAttachSlave */ int deviceid; int new_master; } XIAttachSlaveInfo; typedef struct { int type; /* XIDetachSlave */ int deviceid; } XIDetachSlaveInfo; XIAddMasterInfo creates a new master pointer and a new master keyboard labelled "name pointer" and "name keyboard" respectively. If sendCore is True, the devices will send core events. If enable is True, the device is enabled immediately. XIAddMasterInfo can generate a BadValue error. XIRemoveMasterInfo removes device and its paired master device. If returnMode is XIAttachToMaster, all pointers attached to device or its paired master device are attached to returnPointer. Likewise, all keyboards are attached to returnKeyboard. If returnMode is XIFloating, all attached devices are set to floating. XIRemoveMasterInfo can generate a BadValue and a BadDevice error. XIAttachSlaveInfo attaches device to newMaster. If the device is currently attached to a master device, it is detached from the master device and attached to the new master device. XIAttachSlaveInfo can generate a BadDevice error. XIDettachSlaveInfo deattaches device from the current master device and sets it floating. If the device is already floating, no changes are made. XIDetachSlaveInfo can generate a BadDevice error. XIChangeHierarchy generates an XIHierarchyEvent if any modifications were successful. DIAGNOSTICS
BadDevice An invalid device was specified. The device does not exist or is not a appropriate for the type of change. BadValue Some numeric value falls out of the allowed range. 05/15/2013 XICHANGEHIERARCHY(3)
All times are GMT -4. The time now is 05:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy