07-31-2012
for some reason above statement which mjf sent isn't working, as taillog is not a file, it is a log file. I somehow managed to google and found this one.
tail -f /a/b/c/xyz.log | grep 'process completed'
above statement was successful as I just tested with my requirements. So I am looking for second part which means a command should run a script as soon as it finds 'process completed' phrase in xyz.log.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a these sentences.
$sent1="Transactivation of wound-responsive genes containing the core sequence of the auxin-responsive element by a wound-induced protein kinase-activated transcription factor in tobacco plants.";
$sent2="I branching formation in erythroid differentiation is... (4 Replies)
Discussion started by: vanitham
4 Replies
2. Shell Programming and Scripting
I am converting a mysql database from myIsam to innodb. After dumping all databases to a file, I am trying to make modification:
sed s/ENGINE=MyISAM/ENGINE=InnoDB/ dump_1 > dump_1_inno
however, when I import the modified dump file to mysql server, I got error:
ERROR 1214 (HY000) at line... (4 Replies)
Discussion started by: fredao
4 Replies
3. Shell Programming and Scripting
I have data that looks like this:
2002 140 40800.0060 GPS 20 C1 25477810.2305
2002 140 41100.0060 GPS 20 C1 25298056.0453
I need to get data after certain pattern.. for example if i search for C1
it should return
25477810.2305
25298056.0453
To achieve this, it should:
... (3 Replies)
Discussion started by: bfr
3 Replies
4. Shell Programming and Scripting
Hello,
I am trying to print lines from a text file using this command
gawk '/Filename:/' 11.rtf >> 22.rtf
and it work ok.
but if the phrase has included forward (/) something like that
gawk '/File/name:/' 11.rtf >> 22.rtf
it give error . so is there any manipulation when it... (1 Reply)
Discussion started by: davidkhan
1 Replies
5. Shell Programming and Scripting
Hello,
I am trying to learn how to pass something more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
______________________________________________
${0##*/}
run... (0 Replies)
Discussion started by: Narnie
0 Replies
6. Shell Programming and Scripting
I am trying to look for a certain file in multiple folders. When I hit the file, I want to stop going to subdirectory.
For example:
/foo/.target
/bar/buz/.target
/foo/bar/.target
I want only
/foo/.target
/bar/buz/.target
Any ideas how:)? (4 Replies)
Discussion started by: overmindxp
4 Replies
7. Shell Programming and Scripting
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies
8. Shell Programming and Scripting
( sleep 3
echo ${LOGIN}
sleep 2
echo ${PSWD}
sleep 2
while read line
do
echo "$line"
PID=$?
sleep 2
kill -9 $PID
done < temp
sleep 5
echo "exit" ) | telnet ${HOST}
while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies
9. Shell Programming and Scripting
I want to burst a report by using the page number value in the report header. Each section starts with *PAGE NO:* 1 Each section might have several pages, but the next section always starts back at 1.
So I want to find the "*PAGE NO:* 1" value and pull all lines that follow until "*PAGE NO:* 1"... (4 Replies)
Discussion started by: Scottie1954
4 Replies
10. UNIX for Beginners Questions & Answers
If run the below code today its creating all directory and getting output files,I f run same code tomorrow I am getting error.
can any one give suggestion to sortout this error.
OSError: no such file or directory : '062518'My code looks like this
import paramiko
import sys
import os ... (8 Replies)
Discussion started by: haribabu2229
8 Replies
DING(1) Debian GNU/Linux DING(1)
NAME
ding - dictionary lookup program for Unix
SYNOPSIS
ding [options] [phrase]
DESCRIPTION
ding is a dictionary lookup program for X Windows/Unix. It comes with a German-English dictionary with about 270,000 entries.
It is based on Tk version >= 8.3 and uses the agrep(1) or egrep(1) tools for searching.
In addition to this ding can also search using ispell(1) and dict(1).
It has many configuration options, such as search preferences, interface language (English or German), colors. It has history and help
functions and comes with useful key and mouse bindings for quick and easy lookups.
If you enter some word or phrase as command line argument, ding will start up with a translation of this word/phrase.
OPTIONS
-x, --selection
Start searching for selected word (X selection).
-m, --mini
Start with minimal size (search form only).
-r, --remote
Start search in an already running program.
-R, --remote-new
Start search in an already running program or start a new program.
--noconf
Do not save preferences
-D #, --debug #
Start with debug output, # = number (1..15).
USAGE
It's very simple: Start ding (via KDE menu "Tools" or via command line), type in search word, press ENTER, read results. Search further by
double-clicking a word, or select a word in another window and drop it by clicking with mouse button 2 over the "ding window". For further
information consult the program help by pressing F1.
SEE ALSO
agrep(1), egrep(1), ispell(1), ding(1).
http://www.tu-chemnitz.de/~fri/ding/
/usr/share/doc/ding/html/index.html
AUTHOR
ding was written by Frank Richter <frank.richter@hrz.tu-chemnitz.de>.
This manual page was written by Roland Rosenfeld <roland@spinnaker.de>, for the Debian GNU/Linux system (but may be used by others).
Debian Project March 2011 DING(1)