02-12-2008
To create alist of files created in the last 1 hour.
Hi,
I need to create a script whcih ill run ever hour and will check all the files which are created in that hour for an error string.
Need help in finding all the files which were created in the last 1 hour.
Thanks in Advance.
Asheesh
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I would like to ask for an advice on how to deal with the following scenario.
Every now and then, our ERP system creates an interface text file with the following file format - XORD????.DLD where ???? is a sequence number. We can have 1 or more XORD files created in an hour. ... (9 Replies)
Discussion started by: negixx
9 Replies
2. Shell Programming and Scripting
Hi,
I have a directory which uploads files every minute.I want to check the number of files uploaded for every one hour.
I want to run a cron every hour to chk this but iam hanged like how to write the script.
Like the script should count for one hr ie from 00:00 to 01:00 hrs then next hr... (3 Replies)
Discussion started by: nessj
3 Replies
3. Shell Programming and Scripting
Hello,
In a HP-UX system we receive several files evry hour.
The file is in the format filename+hour e.g:
sv00
sv01
sv02
sv03
sv04
sv05
sv06
sv07
sv08
sv09
sv10
sv11
sv12
sv13
sv14
sv15 (2 Replies)
Discussion started by: drbiloukos
2 Replies
4. Shell Programming and Scripting
Hi all,
I have ot match sentence list and word list anf fetch similar words in a separate file
second file with 2 columns
So I want the output shuld be 2 columns like this (3 Replies)
Discussion started by: manigrover
3 Replies
5. Shell Programming and Scripting
Hi friends, I want to convert 24 hour timing to 12 hour please help me...
my data file looks like this..
13-Nov-2011 13:27:36 15.32044 72.68502
13-Nov-2011 12:08:31 15.31291 72.69807
16-Nov-2011 01:16:54 15.30844 72.74028
15-Nov-2011 20:09:25 15.35096 ... (13 Replies)
Discussion started by: nex_asp
13 Replies
6. Shell Programming and Scripting
Hello Masters,
I need one help.
I want to copy the files which are continuously generating on one server.
But this would be on hourly basis.
e.g.
-rw-rw-r-- 1 akore akore 0 Feb 12 03:20 test1.log
-rw-rw-r-- 1 akore akore 0 Feb 12 03:42 test2.log
-rw-rw-r-- 1 akore akore 0 Feb 12 04:22... (2 Replies)
Discussion started by: akore83
2 Replies
7. Shell Programming and Scripting
Hi Gurus,
I want to find the file created within one hour in solaris.
I have tried below command, but it is no lucky.
$find . -mtime -1/24, -name "abc*"
above command give me the file name which created two hours ago
find . -cmin -60, -name "abc*"
above command I got error as... (4 Replies)
Discussion started by: ken6503
4 Replies
8. Shell Programming and Scripting
Hi Gurus,
I need to compare two file contents and log the difference. the detail as below:
in current directory there is file
abc20140728_1020.txt
abc20140728_1110.txt
I need to find the files which created within 60 minutes first then compare the contents.
I am able to use find... (12 Replies)
Discussion started by: ken6503
12 Replies
9. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
10. UNIX for Beginners Questions & Answers
A process xyz is running and creating file1, file2, file3, .... filen. how do i know if the process has stopped and createtime of the last file (filen) is older than 5 minutes?
OS is AIX (3 Replies)
Discussion started by: malaika
3 Replies
QER(8) System Manager's Manual QER(8)
NAME
qer, runq - queues management for spooled files
SYNOPSIS
qer root tag reply args
runq [ -ad ] root cmd
DESCRIPTION
Qer creates a control and a data file in a queue directory. The control file contents consist of the tag, reply, and args separated by
spaces. The data file contains the standard input to qer. The files are created in the directory root/user, where user is the contents of
/dev/user. Mktemp(2) is used to create the actual names of the control and data file.
Runq processes the files queued by qer. Without the -a option, runq processes all requests in the directory root/user, where user is the
contents of /dev/user. With the -a it processes all requests. Each request is processed by executing the command cmd with the contents of
the control file as its arguments, the contents of the data file as its standard input, and standard error appended to the error file
E.XXXXXX.
The action taken by runq depends on the return status of cmd. If cmd returns a null status, the processing is assumed successful and the
control, data, and error files are removed. If cmd returns an error status containing the word the files are left to be reprocessed at a
later time. For any other status, an error message is mailed to the requester and the files are removed. Runq uses the reply field in the
control file as a mail address to which to send an error notification. The notification contains the contents of the control file to iden-
tify the failed request.
To avoid reprocessing files too often, the following algorithm is used: a data file younger than one hour will not be processed if its
error file exists and was last modified within the preceding 10 minutes. A data file older than one hour will not be processed if its
error file exists and was last modified within the preceding hour.
The -d option causes debugging output on standard error describing the progress through the queues.
Runq is often called from cron(8) by an entry such as
0,10,20,30,40,50 * * * * kremvax
runq -a /mail/queue /mail/lib/remotemail
The entry must be a single line; it is folded here only so it fits on the page.
FILES
root/user
queue directory for user
root/user/D.XXXXXX
data file
root/user/C.XXXXXX
control file
root/user/E.XXXXXX
error file
SOURCE
/sys/src/cmd/upas/q
SEE ALSO
mail(1)
QER(8)