10-16-2012
Thanks all , The suggested code works like a charm
10 More Discussions You Might Find Interesting
1. 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
2. UNIX for Dummies Questions & Answers
I am such a newbie. I am from a mainframe background, so this stuff is new for me to interpret. I dont know if I need a sleep or wait.
I need a loop to wait for a filea or fileb to be created before I execute further script. The driver unix script is on the solaris. The files I'm looking for... (1 Reply)
Discussion started by: Lillyt
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 Dummies Questions & Answers
Hello, I know this isn't exactly a Unix question, but I wasn't able to find much information elsewhere.
I'm trying to run a program in the background using Cygwin on a Windows machine, then use the wait command to pause before proceeding. Unfortunately, as I've confirmed using ps aux, the... (0 Replies)
Discussion started by: ocdcollector
0 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. Shell Programming and Scripting
how to compare to arrays to check if each elements of the first are the same of the second?
for ((i=0;i<$LENGTH;i++)) ; do
for (j=0;j<$LENGTH;j++)) ; do
if } == ${ARR2} ]
echo "Are the same";
fi;
done;
done;
i try this but it doesn't work :(
if i make... (0 Replies)
Discussion started by: tafazzi87
0 Replies
8. Shell Programming and Scripting
I have a script that runs every hour from the crontab (see the settings of the crontab below) (15 mins past the hour)
15 * * * * /home/usr/usr1/ProvAll
This script saves two files in the following format
now=`/bin/date '+%Y%m%d.%H%M%S'`
file1.$now (for example)
file1.20140722.031502... (12 Replies)
Discussion started by: knijjar
12 Replies
9. 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
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
dlg(1) PCCTS Manual Pages dlg(1)
NAME
dlg - DFA Lexical Analyzer Generator
SYNTAX
dlg [options] lexical_spec [output_file]
DESCRIPTION
dlg is a tool that produces fast deterministic finite automata for recognizing regular expressions in input.
OPTIONS
-CC Generate C++ output. The output_file is not specified in this case.
-C[ level]
Where level is the compression level used. 0 indications no compression, 1 removes all unused characters from the transition from
table, and 2 maps equivalent characters into the same character classes. It is suggested that level -C2 is used, since it will sig-
nificantly reduce the size of the dfa produced for lexical analyzer.
-m Produces the header file for the lexical mode with a name other than the default name of "mode.h".
-i An interactive, or as interactive as possible, parser is produced. A character is only obtained when required to decide which state
to go to. Some care must be taken to obtain accept states that do not require look ahead at the next character to determine if that
is the stop state. Any regular expression with a Kleene closure at the end is guaranteed to require another character of look
ahead.
-cl class
Specify a class name for DLG to generate. The default is DLGLexer. "class" will be a subclass of DLGLexerBase; only used for -CC.
-ci The automaton will treat upper and lower case characters identically. This is accomplished in the automaton; the characters in the
lexical buffer are unmodified.
-cs Upper and lower case characters are treated as distinct. This is the default.
-o dir Directory where output files should go (default="."). This is very nice for keeping the source directory clear of ANTLR and DLG
spawn.
-Wambiguity
Warns if more than one regular expression could match the same character sequence. The warnings give the numbers of the expressions
in the dlg lexical specification file. The numbering of the expressions starts at one. Multiple warnings may be print for the same
expressions.
- Used in place of file names to get input from standard in or send output to standard out.
SPECIAL CONSIDERATIONS
Dlg works... we think. There is no implicit guarantee of anything. We reserve no legal rights to the software known as the Purdue Com-
piler Construction Tool Set (PCCTS) -- PCCTS is in the public domain. An individual or company may do whatever they wish with source code
distributed with PCCTS or the code generated by PCCTS, including the incorporation of PCCTS, or its output, into commercial software. We
encourage users to develop software with PCCTS. However, we do ask that credit is given to us for developing PCCTS. By "credit", we mean
that if you incorporate our source code into one of your programs (commercial product, research project, or otherwise) that you acknowledge
this fact somewhere in the documentation, research report, etc... If you like PCCTS and have developed a nice tool with the output, please
mention that you developed it using PCCTS. As long as these guidelines are followed, we expect to continue enhancing this system and
expect to make other tools available as they are completed.
FILES
mode.h , dlgauto.h , dlgdef.h
SEE ALSO
antlr(1), pccts(1)
BUGS
DLG
April 1994 dlg(1)