07-31-2012
hi agama,
got one more question here, as my xyz.log file keep changing daily as it has date stamp in filename just like xyz073112.log(as of today). So can we use /a/b/c/taillog.sh in first step in above code. Any means we can use taillog.sh to get rid of daily updated xyzxxx.log file
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
SA2(8) Linux User's Manual SA2(8)
NAME
sa2 - Write a daily report in the /var/log/sa directory.
SYNOPSIS
/usr/lib64/sa/sa2
DESCRIPTION
The sa2 command is a shell procedure variant of the sar command which writes a daily report in the /var/log/sa/sardd file, where the dd
parameter indicates the current day. The sa2 command handles all of the flags and parameters of the sar command.
The sa2 command is designed to be started automatically by the cron command.
EXAMPLES
To run the sa2 command daily, place the following entry in your root or adm crontab file:
5 19 * * 1-5 /usr/lib64/sa/sa2 -A &
This will generate a daily report called /var/log/sa/sardd It will also remove reports more than one week old.
FILES
/var/log/sa/sardd
Indicate the daily report file, where the dd parameter is a number representing the day of the month.
AUTHOR
Sebastien Godard (sysstat <at> orange.fr)
SEE ALSO
sar(1), sadc(8), sa1(8), sadf(1)
http://pagesperso-orange.fr/sebastien.godard/
Linux AUGUST 2010 SA2(8)