07-07-2010
How is the script to know which events have already been reported?
The back slashes in the data could also be problematic.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Experts,
I am newbie to perl, just curious to know how to do the following in perl.
suppose I ve a txt file like below. when it founds "*Main Start"
Then go to "*Main End,,,,,,,," patteren and just collect the number from the previous line of "*Main End,,,,,,," pattern . In my... (17 Replies)
Discussion started by: user_prady
17 Replies
2. Shell Programming and Scripting
Hi,
I need help in running a script that would pull info from an email subject line and run a script (foo.sh). I'm pretty sure after a bit of googling that this is possible in several ways. but none was pretty clear on how to accomplish it. The part that I really need help with is getting the... (5 Replies)
Discussion started by: satekn
5 Replies
3. Shell Programming and Scripting
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies
4. Shell Programming and Scripting
Hi !
I am a newbie and never officially wrote a shell script before.
The requirement for this script is :
1) Read a file called 'bpm.log' and identify if it has a specific text such as 'this is the text'. Its a static value and that is the only text we need to read.
2) If that... (2 Replies)
Discussion started by: atechcorp
2 Replies
5. UNIX for Dummies Questions & Answers
I have a file like this
DoctorName
Address1
Address2
DOB
InsuredName
Address1
Address2
DOB
PatientName
Address1
Address2
DOB
ClaimNo1
DoctorName
Address1
Address2
DOB
InsuredName (2 Replies)
Discussion started by: nsuresh316
2 Replies
6. Shell Programming and Scripting
Hi All,
From the below line if we want to display all the text till found pattern dot/. I was trying with the below code but couldn't able
to print text before the pattern. it display texts which is found after pattern.
awk '/assed/{print;getline;print}' file_name | sed 's/^*. *//'
input... (4 Replies)
Discussion started by: Optimus81
4 Replies
7. Shell Programming and Scripting
Hello Everyone,
I have a file with 5 fields in each line just like mentioned below. Also the 4th field is time elapsed(hh:mm:ss) since the process is running
xyz abc status 23:00:00 idle
abc def status 24:00:00 idle
def gji status 27:00:02 idle
fgh gty status 00:00:00 idle
Here I... (8 Replies)
Discussion started by: rahul2662
8 Replies
8. Shell Programming and Scripting
Hi,:)
I try this :
#!/bin/bash
sender="me@example.com"
recipient="you@example.com"
subject="TEST FILE"
server="0.0.0.0"
file=$(cat file.txt)
/usr/bin/sendemail -f $sender -t $recipient -u $subject -m $file
My file.txt:
BLABLALA
BLABLABLA (7 Replies)
Discussion started by: Arnaudh78
7 Replies
9. Shell Programming and Scripting
Hi All,
totally new on it , normally use it for just 1 line.
i'm looking for help.
i'm have 2 file.
file 1 :
--------------------------------------------------
c12
c1
c3
--------------------------------------------------
file 2:
other content ... (10 Replies)
Discussion started by: kttan
10 Replies
10. UNIX for Beginners Questions & Answers
Looking for help,
i have input file like below and want to modify to expected output, if can without create additional file, hope can direct modify it.
have 2 thing need do.
1st
is adding a word (testplan generation off) after ! ! IPG: Tue Aug 07 14:31:17 2018
2nd
is adding... (16 Replies)
Discussion started by: kttan
16 Replies
LEARN ABOUT OSF1
xdevicetimecoord
XGetDeviceMotionEvents(3X11) XGetDeviceMotionEvents(3X11)
NAME
XGetDeviceMotionEvents, XDeviceTimeCoord - get device motion history
SYNOPSIS
XDeviceTimeCoord *XGetDeviceMotionEvents(display, device, start, stop, nevents_return, mode_return, axis_count_return)
Display *display;
XDevice *device;
Time start, stop;
int *nevents_return;
int *mode_return;
int *axis_count_return;
ARGUMENTS
Specifies the connection to the X server. Specifies the device whose motion history is to be queried. Specify the time interval in which
the events are returned from the motion history buffer. You can pass a timestamp or CurrentTime. Returns the number of events from the
motion history buffer. Returns the mode of the device (Absolute or Relative). Returns the count of axes being reported.
DESCRIPTION
The server may retain the recent history of the device motion and do so to a finer granularity than is reported by DeviceMotionNotify
events. The XGetDeviceMotionEvents request makes this history available.
The XGetDeviceMotionEvents request returns all events in the motion history buffer that fall between the specified start and stop times,
inclusive. If the start time is later than the stop time or if the start time is in the future, no events are returned. If the stop time is
in the future, it is equivalent to specifying CurrentTime.
The mode indicates whether the device is reporting absolute positional data (mode=Absolute) or relative motion data (mode=Relative). Some
devices allow their mode to be changed via the XSetDeviceMode request. These constants are defined in the file <XI.h>. The axis_count
returns the number of axes or valuators being reported by the device.
XGetDeviceMotionEvents can generate a BadDevice, or BadMatch error.
STRUCTURES
The XDeviceTimeCoord structure contains:
typedef struct {
Time time;
int *data; } XDeviceTimeCoord;
The time member is set to the time, in milliseconds. The data member is a pointer to an array of integers. These integers are set to the
values of each valuator or axis reported by the device. There is one element in the array per axis of motion reported by the device. The
value of the array elements depends on the mode of the device. If the mode is Absolute, the values are the raw values generated by the
device. These may be scaled by client programs using the maximum values that the device can generate. The maximum value for each axis of
the device is reported in the max_val field of the XAxisInfo returned by the XListInputDevices request. If the mode is Relative, the data
values are the relative values generated by the device.
You should use XFreeDeviceMotionEvents to free the data returned by this request.
Errors returned by this request: BadDevice, BadMatch.
DIAGNOSTICS
An invalid device was specified. The specified device does not exist or has not been opened by this client via XOpenInputDevice. This
error may also occur if the specified device is the X keyboard or X pointer device. This error may occur if an XGetDeviceMotionEvents
request is made specifying a device that has no valuators and reports no axes of motion.
SEE ALSO
Programming with Xlib
XGetDeviceMotionEvents(3X11)