hi friends
I need a shell script which will do the following Task
Enter the month :
if you enter 1 then it ll show you last 1 month's (starting from today).log file in the current directry.
if you enter 4 then it ll show you last 4 month's (starting from today).log file in the current... (2 Replies)
hi
iam new of the ksh script.iwant in formation of how to call in logfile in
ksh scripts. if the meaning in ksh.
please help me
thanks
naveen.g (1 Reply)
I thought I was pretty handy with awk until I got this one. :)
I'm trying to parse a log file where the events could have different delimiters (2 scripts is ok), the errors are spread over multiple lines, and I"m trying to figure out how to not read the same lines that have already been read. ... (1 Reply)
Hi,
I have a log file like exyymmdd.log and i need to do is read the log file and inside the logfile if i find the word which starts with PQR002106570.book then i need to replace the value of PQRXXX.book(this is unique) with its corresponding title. A list of id(PQRXXX.book) and its title are... (5 Replies)
I cannot get anything to go to my log. This is what i see on my screen when i run my korn shell.
cd ok, cwd=/export/home/tsp_inst/TSP
pget: /nas4/edata/tsp/rawdata/test2.gz: File exists
But i cant get it to write it to my log.
cd /this/is/my/newdirectory
lftp -e 'pget -c -n 4... (1 Reply)
Hi,
I need to continuously monitor a logfile to get the log information between a process start and end.
the logfile look like this
abcdddddddddd
cjjckkkkkkkkkkkk
abc : Process started
aaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbb
abc... (6 Replies)
Dear all,
I have small script which seems to be working but seems to have some bug.
It suppose to read commonTxt and then print the noOfLines in outputFile.
It is working for most of the txt but unable to add some of the variables values.
Can somebody please spend looking at the thread and... (2 Replies)
Hi Team,
Have to write a shell script to pick only 1 hr logs from the generated logfile and send it to other logfile.
Thanks & Regards,
Indu (3 Replies)
Bonjour,
I've wrote a script to monitor a logfile in realtime. It is working almost perfeclty except for two things.
The script use the following technique :
tail -fn0 $logfile | \
while read line ; do
... some stuff
done
First one, I'd like a way to end the monitoring script if a... (3 Replies)
Hi,
I have logfile like this..
=== 2014-02-09 15:46:59,936 INFO RequestContext - URL: '/eyisp/sc/skins/EY/images/pickers/comboBoxPicker_Over.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko': Unsupported with Accept-Encoding header
=== 2015-02-09... (8 Replies)
Discussion started by: kishk
8 Replies
LEARN ABOUT DEBIAN
storebackupmount
STOREBACKUPMOUNT(1) User Contributed Perl Documentation STOREBACKUPMOUNT(1)NAME
storeBackupMount.pl - runs storeBackup backing up to an nfs mount
SYNOPSIS
storeBackupMount.pl -c configFile [-s server] [-l logFile] [-d]
[-p pathToStoreBackup] [-k killTime] [-m] mountPoints...
DESCRIPTION
This script does the following:
- checks an nfs server with ping
- mounts that server via a list of mount points
- starts storeBackup (with a config file)
- umounts that server
OPTIONS --server, -s
name or ip address of the nfs server
default is localhost
--configFile, -c
configuration file for storeBackup.
if option 'logFile' is set in the configration file,
that log file is read online, if it is different from -l
--logFile, -l
logFile for this process.
default is STDOUT.
you can log into the same logfile as storeBackup
--debug, -d
generate some debug messages
--pathStbu, -p
path to storeBackup.pl
--killTime -k
time until storeBackup.pl will be killed.
default is 365 days.
the time range has to be specified in format 'dhms', e.g.
10d4h means 10 days and 4 hours
--keepExistingMounts, -m
if a mount already exists, do not umount after
running storeBackup
mountPoints
List of mount points needed to perform the backup.
This must be a list of paths which have to be
defined in /etc/fstab.
-
if you add 'ro,' or 'rw,' to the beginning of a mount
point, you can overwrite that option set in /etc/fstab
example:
ro,/filesSystemToRead
will mount /fileSystemToRead read only, even if the
corresponding entry in /etc/fstab mounts it read write
only root is allowed to use this feature!
EXIT STATUS
0 -> everything is ok
1 -> error from storeBackup
2 -> error from storeBackupMount
3 -> error from both programs
COPYRIGHT
Copyright (c) 2004-2008,2012 by Heinz-Josef Claes (see README). Published under the GNU General Public License v3 or any later version
perl v5.14.2 2012-03-03 STOREBACKUPMOUNT(1)