you could just configure a logfile within your script.
Alternatively you just run the script with logfile options. For example:
To put output in logfile:
To put output and errors in logfile:
To separate:
Hi there,
I have a problem here that involves bash script since I was noob in that field. Recently, I have to monitor data involve in logs so I just run command tail -f for the monitoring. The logs was generate every hour so I need to quickly change my logs every time the new hour hits according... (2 Replies)
I would like to monitor a log file using a shell script and as soon as a line with a certain string in it appears I would like to run a program. I have been playing around with doing this using tail -f, but cannot get it to work. I found something similar here:... (1 Reply)
hi All,
how to find a pattern in the log file & display the above and below line
for example in the log file, i have many lines, whenever i search for "Category" it should display the above line with only few parameter like i want only the location name & department name
Thu Jul 02 11:05:23... (2 Replies)
Hi Folks,
I need help in creating a script to monitor a continuously updating log for one particular error. If the the script finds the error it should send out an email.
Thanks for all ur help (2 Replies)
Hi Friends,
I am trying to write a script which continiously monitor one specific error message from a log file. This script should continiously monitor the file for the error and send out the email when detect the error message. I tried the below command but fails. Please help me.
tail -f... (4 Replies)
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
This is my log file and this is live log.
Any abnormal error other than following
I need to generate the email.
Log path : /DER/app/admin/ABC/bdump/erg.log
Current log# 2 seq# 103046 mem# 0: /ora2/oradata/ABC/redo02a.log
Current log# 2 seq# 103046 mem# 1:... (1 Reply)
This is my log file and this is live log.
Any abnormal error other than following
I need to generate the email.
Log path : /DER/app/admin/ABC/bdump/erg.log
Current log# 2 seq# 103046 mem# 0: /ora2/oradata/ABC/redo02a.log
Current log# 2 seq# 103046 mem# 1:... (7 Replies)
Hi,
Have written a script to monitor linux non standard log file based on line numbers, so each check store $otalinenum ..
then in next check after 10 minutes it compre the current_total_line_num > last_total_line_num then it will parse the log file from last_total_line_num to... (0 Replies)
Hi,
I need to amend an existing ksh script so that it runs a process (stop weblogic) and in parallel needs to monitor a log file (startup.log) in the background for a certain string (e.g. unable to stop weblogic). If the string appears in the log i need to kill the stop weblogic process.
... (5 Replies)
Discussion started by: dholmaster
5 Replies
LEARN ABOUT DEBIAN
ddrescuelog
DDRESCUELOG(1) User Commands DDRESCUELOG(1)NAME
ddrescuelog - tool for ddrescue logfiles
SYNOPSIS
ddrescuelog [options] logfile
DESCRIPTION
GNU ddrescuelog - Tool for ddrescue logfiles. Manipulates ddrescue logfiles, shows their contents, converts them to/from other formats,
compares them, and tests rescue status.
OPTIONS -h, --help
display this help and exit
-V, --version
output version information and exit
-a, --change-types=<ot>,<nt>
change the block types of a logfile
-b, --block-size=<bytes>
block size in bytes [default 512]
-c, --create-logfile[=<tt>]
create logfile from list of blocks [+-]
-d, --delete-if-done
delete the logfile if rescue is finished
-D, --done-status
return 0 if rescue is finished
-f, --force
overwrite existing output files
-i, --input-position=<bytes>
starting position of rescue domain [0]
-l, --list-blocks=<types>
print block numbers of given types (?*/-+)
-m, --domain-logfile=<file>
restrict domain to finished blocks in file
-n, --invert-logfile
invert block types (finished <-> others)
-o, --output-position=<bytes>
starting position in output file [ipos]
-p, --compare-logfile=<file>
compare block types in domain of both files
-q, --quiet
suppress all messages
-s, --max-size=<bytes>
maximum size of rescue domain to be processed
-t, --show-status
show a summary of logfile contents
-v, --verbose
be verbose (a 2nd -v gives more)
-x, --xor-logfile=<file>
XOR the finished blocks in file with logfile
-y, --and-logfile=<file>
AND the finished blocks in file with logfile
-z, --or-logfile=<file>
OR the finished blocks in file with logfile
Numbers may be followed by a multiplier: b = blocks, k = kB = 10^3 = 1000, Ki = KiB = 2^10 = 1024, M = 10^6, Mi = 2^20, G = 10^9, Gi =
2^30, etc...
REPORTING BUGS
Report bugs to bug-ddrescue@gnu.org
Ddrescue home page: http://www.gnu.org/software/ddrescue/ddrescue.html
General help using GNU software: http://www.gnu.org/gethelp
COPYRIGHT
Copyright (C) 2012 Antonio Diaz Diaz. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
ddrescuelog 1.16 June 2012 DDRESCUELOG(1)