07-22-2014
find: bad option -mmin
find: [-H | -L] path-list predicate-list
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I wish to seach a Dir for a specific file, once the file is found i will perform additional logic. If the file is not found within two hours, i would like to exit.
Logically, I'm looking for the best way to approach this
Thanks for any assistance in advance.
Note: I'm using a C shell and... (2 Replies)
Discussion started by: mmarsh
2 Replies
2. Shell Programming and Scripting
Hi All,
I would like to write a script which will search a file say abc.dat in /a/b/data for 15 mins only. If the script finds the file in 15 mins then it will exit will exit sucessfully and if there is no file for 15 mins it will exit and copy the last day file (abc.dat_ddmmyyhhmmss) from... (1 Reply)
Discussion started by: chandancsc
1 Replies
3. Shell Programming and Scripting
Hello
We have to monitor a FTP utility where we have to monitor for checking presence of a file in directory With max time allowed for a file to stay in the directory on FTP client server as 10 mins.
The only way we are going to be able to do what we are lookign for is to write a script to... (1 Reply)
Discussion started by: vivkas
1 Replies
4. UNIX for Advanced & Expert Users
Advance Thanks.
(1) I would like to know any unix/Linux command to check EOF char in a file.
(2) Or Any way I can check a file has been reached completely at machine B from machine A. Note that machine A ftp/scp the file to machine B at unknown time. (5 Replies)
Discussion started by: alexalex1
5 Replies
5. Shell Programming and Scripting
HI All,
I have a log file where the logs will be in the format as given below:
2011-05-25 02:32:51 INFO PROCESS STARTING
2011-05-25 02:32:52 INFO PROCESS STARTED
.
.
.
I want to retrieve only the logs which are less than 5 mins older than current time using grep... (3 Replies)
Discussion started by: rvhg16
3 Replies
6. AIX
I want to grep only last 5 mins of a log file in bash
I have a syslog which contains the following
Mon Jul 11 20:47:42
Mon Jul 11 20:47:52
The following works in Unix but not in AIX . Please can you let me know as to what would be the AIX equivalent
Code: for (( i = 5; i >=0;... (1 Reply)
Discussion started by: necro98
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All!
I want to have a shell script that checks for a file in a particular folder and then if the file is not found it should wait for 30 minutes. Again check for the file, if it FOUND then successfuly exit the shell script stating the file is found. Else it should continue to wait.
... (4 Replies)
Discussion started by: akshay01987
4 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I have an issue which I'm trying to understand a way of doing, I have several nodes which contain syslog events which I want to force trigger an email initially (eventually leading to another method of alerting but to start with an email).
Basically the syslog file will have hours worth... (6 Replies)
Discussion started by: mutley2202
6 Replies
9. Shell Programming and Scripting
I need 5 mins old logs to be dumped into a a new file.
The date formats in the two log files are
Can you suggect for both formats ?
bash-3.2$ uname -a
SunOS myserver 5.10 Generic_150400-26 sun4v sparc sun4v
---------- Post updated 05-04-16 at 12:24 AM ---------- Previous update was... (2 Replies)
Discussion started by: mohtashims
2 Replies
10. Shell Programming and Scripting
Dears,
I am looking for a script which will work as a watch directory.
I ha directory which keep getting files in every 10 mins and some time delay.
I want to monitor if the directory getting the files in every 10 mins if not captured the last received file time and calculate the delay.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
LEARN ABOUT CENTOS
xifevent
XIfEvent(3) XLIB FUNCTIONS XIfEvent(3)
NAME
XIfEvent, XCheckIfEvent, XPeekIfEvent - check the event queue with a predicate procedure
SYNTAX
int XIfEvent(Display *display, XEvent *event_return, Bool (*predicate)(), XPointer arg);
Bool XCheckIfEvent(Display *display, XEvent *event_return, Bool (*predicate)(), XPointer arg);
int XPeekIfEvent(Display *display, XEvent *event_return, Bool (*predicate)(), XPointer arg);
ARGUMENTS
arg Specifies the user-supplied argument that will be passed to the predicate procedure.
display Specifies the connection to the X server.
event_return
Returns either a copy of or the matched event's associated structure.
predicate Specifies the procedure that is to be called to determine if the next event in the queue matches what you want.
DESCRIPTION
The XIfEvent function completes only when the specified predicate procedure returns True for an event, which indicates an event in the
queue matches. XIfEvent flushes the output buffer if it blocks waiting for additional events. XIfEvent removes the matching event from
the queue and copies the structure into the client-supplied XEvent structure.
When the predicate procedure finds a match, XCheckIfEvent copies the matched event into the client-supplied XEvent structure and returns
True. (This event is removed from the queue.) If the predicate procedure finds no match, XCheckIfEvent returns False, and the output buf-
fer will have been flushed. All earlier events stored in the queue are not discarded.
The XPeekIfEvent function returns only when the specified predicate procedure returns True for an event. After the predicate procedure
finds a match, XPeekIfEvent copies the matched event into the client-supplied XEvent structure without removing the event from the queue.
XPeekIfEvent flushes the output buffer if it blocks waiting for additional events.
Each of these functions requires you to pass a predicate procedure that determines if an event matches what you want. Your predicate pro-
cedure must decide if the event is useful without calling any Xlib functions. If the predicate directly or indirectly causes the state of
the event queue to change, the result is not defined. If Xlib has been initialized for threads, the predicate is called with the display
locked and the result of a call by the predicate to any Xlib function that locks the display is not defined unless the caller has first
called XLockDisplay.
The predicate procedure and its associated arguments are:
Bool (*predicate)(Display *display, XEvent *event, XPointer arg)
display Specifies the connection to the X server.
event Specifies the XEvent structure.
arg Specifies the argument passed in from the XIfEvent, XCheckIfEvent, or XPeekIfEvent function.
The predicate procedure is called once for each event in the queue until it finds a match. After finding a match, the predicate procedure
must return True. If it did not find a match, it must return False.
SEE ALSO
XAnyEvent(3), XNextEvent(3), XPutBackEvent(3) XSendEvent(3)
Xlib - C Language X Interface
X Version 11 libX11 1.6.0 XIfEvent(3)