How about running stop in background and monitoring the log+child-process in the foreground like this:
(assumption is you have /proc filesystem, if not might need to call ps instead of checking the /proc/$CHILD directory).
You could also add a saftey check, eg if after X loops it kills the child anyway (for taking too long).
Hi there,
I have a problem here that involves bash script since I was noob in that field. Recently, I have to monitor data involve in logs so I just run command tail -f for the monitoring. The logs was generate every hour so I need to quickly change my logs every time the new hour hits according... (2 Replies)
I would like to monitor a log file using a shell script and as soon as a line with a certain string in it appears I would like to run a program. I have been playing around with doing this using tail -f, but cannot get it to work. I found something similar here:... (1 Reply)
hi All,
how to find a pattern in the log file & display the above and below line
for example in the log file, i have many lines, whenever i search for "Category" it should display the above line with only few parameter like i want only the location name & department name
Thu Jul 02 11:05:23... (2 Replies)
Hi Folks,
I need help in creating a script to monitor a continuously updating log for one particular error. If the the script finds the error it should send out an email.
Thanks for all ur help (2 Replies)
Hi Friends,
I am trying to write a script which continiously monitor one specific error message from a log file. This script should continiously monitor the file for the error and send out the email when detect the error message. I tried the below command but fails. Please help me.
tail -f... (4 Replies)
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
This is my log file and this is live log.
Any abnormal error other than following
I need to generate the email.
Log path : /DER/app/admin/ABC/bdump/erg.log
Current log# 2 seq# 103046 mem# 0: /ora2/oradata/ABC/redo02a.log
Current log# 2 seq# 103046 mem# 1:... (1 Reply)
Hi,
Have written a script to monitor linux non standard log file based on line numbers, so each check store $otalinenum ..
then in next check after 10 minutes it compre the current_total_line_num > last_total_line_num then it will parse the log file from last_total_line_num to... (0 Replies)
Hi,
I want to monitor a log file using tail -f command and search for a specific string on the most recent entry from the file. If the search string matches with the most recent or last line from the file, I want send an email to the people with the message.
tail -f service.log|tail -n 1
... (5 Replies)
I'm curious to know how do I add an empty log file (test1.log) to an existing text file to monitor all the changes made to a.txt.
Is this expression
export PATH=$PATH:/home/test1.log
right to be added to the text file a.txt? (5 Replies)
Discussion started by: TestKing
5 Replies
LEARN ABOUT HPUX
xtregistercaseconverter
XtRegisterCaseConverter() XtRegisterCaseConverter()
Name
XtRegisterCaseConverter - register a case converter.
Synopsis
void XtRegisterCaseConverter(display, proc, start, stop)
Display *display;
XtCaseProc proc;
KeySym start;
KeySym stop;
Inputs
display Specifies the display from which the key events are to come.
proc Specifies the XtCaseProc that is to do the conversions.
start Specifies the first keysym for which this converter is valid.
stop Specifies the last keysym for which this converter is valid.
Description
XtRegisterCaseConverter() registers proc with the Intrinsics as a procedure to be called in order to determine the correct uppercase and
lowercase versions of any keysyms between start and stop inclusive. The registered converter overrides any previous converters registered
in that range.
See XtCaseProc(2) for a description of how to write a case converter procedure.
Usage
The Translation Manager uses case converters as part of its keycode-to-keysym translation process. The default converter understands case
conversion for all keysyms defined in the X11 protocol. You will probably never need to register a case converter unless you are working
with non-standard keysyms.
The only way to remove a converter is to register a new one, perhaps an "identity" converter which performs no conversion at all.
The registered case converters are invoked by the translation manager, and can also be explicitly called with the function XtConvertCase().
Structures
typedef XID KeySym;
See AlsoXtConvertCase(1), XtGetKeysymTable(1), XtKeysymToKeycodeList(1), XtSetKeyTranslator(1), XtTranslateKeycode(1),
XtCaseProc(2), XtKeyProc(2).
Xt - Keyboard Handling XtRegisterCaseConverter()