08-01-2012
Appreciate the quick responses, but these things wrecking my mind am completely new to unix. So anyone who can provide exact solution to my requirement. It should be like ...
1. taillog.sh is the tail log script which keeps updating when my server comes up
2. phrase to be searched for is "process completed"
3. once code find the above phrase(process completed) in taillog.sh , it should execute another ./startscript.
thanks in Advance
---------- Post updated 08-01-12 at 10:09 PM ---------- Previous update was 07-31-12 at 10:15 PM ----------
Can any one help out with a script with below requirement.,
Quote:
Originally Posted by
fop4658
Appreciate the quick responses, but these things wrecking my mind am completely new to unix. So anyone who can provide exact solution to my requirement. It should be like ...
1. taillog.sh is the tail log script which keeps updating when my server comes up
2. phrase to be searched for is "process completed"
3. once code find the above phrase(process completed) in taillog.sh , it should execute another ./startscript.
thanks in Advance
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