It sounds like some kind of progamming problem. Are you running out of disk space in the filesystem where the logfile lives? You should see errors about disk space.
This shows the number of free bytes If it is a small number (<10000) you have a problem. YOu need to clean out unused files - move them off somewhere else or back them up to tape and then delete them.
Hi,
I would like to define a script in order to update a file with the last updated records:
I wrote :
#!/bin/sh
YEAR=$(date +%Y)
MONTH=$(date +%m)
DAY=$(date +%d)
COMM=/usr/bin/comm
for file in * ;
do
if ] ; then
FILE=${DPSTY}
UNIQUE=Unique_${FILE}
... (4 Replies)
Hi all,
my problem is teh following:
I need to move a file from a folder to another and I usually do it by the get command but in this case I have a list of file in the source folder and I have to select only the lust updated one.
Ho to do this?
All the files have the same name followed... (4 Replies)
Put this together from somewhere else on the forums, just modified it and added the loop.
#!/bin/ksh
localFile=$1
remoteFile=$2
#source FTP parameters
. .ftp_put.cfg
mylog=ftp_session.log
echo "$(date "+%H:%M:%S") - Attempt to FTP $1 to $2" > $mylog
machine="server1 server2... (5 Replies)
Hi,
I have a file, fileA, that consists of two fields. Field 1 has an old object name, and field 2 has a new object name. I would like to search and replace a master file, FileB, by substituting the old object name (field 1 in fileA) with the new object name ( field 2 in fileA).
FileA:... (16 Replies)
Hi ,
We have around 22 logs , each has different entries. I have to automate this using shell script. The ideas which am sharing is given below
1) We use only TAIL -100 <location and name of the log> Command to check the logs.
2) We want to check whether the log was updated before 24... (13 Replies)
Hello,
Iam running with one issue, since particular date looks like one of the script vanished from the system after restarting of the system.
I dont know which scrit it was but definatelt there should be one.
but might be some logs would be there which have not updated from that day.
so... (2 Replies)
hi can any one please help on below .im new to shell scrpting
i need to write a shell script which will check particular log file is presented or not in specific location ,if yes how long it was not modified/not rolling ?if its not modified/log is not rolling script will have to send mail (9 Replies)
Discussion started by: 4Learning
9 Replies
LEARN ABOUT DEBIAN
git::repository::log::iterator
Git::Repository::Log::Iterator(3pm) User Contributed Perl Documentation Git::Repository::Log::Iterator(3pm)NAME
Git::Repository::Log::Iterator - Split a git log stream into records
SYNOPSIS
use Git::Repository::Log::Iterator;
# use a default Git::Repository context
my $iter = Git::Repository::Log::Iterator->new('HEAD~10..');
# or provide an existing instance
my $iter = Git::Repository::Log::Iterator->new( $r, 'HEAD~10..' );
# get the next log record
while ( my $log = $iter->next ) {
...;
}
DESCRIPTION
"Git::Repository::Log::Iterator" initiates a git log command from a list of paramaters and parses its output to produce
"Git::Repository::Log" objects represening each log item.
METHODS
new( @args )
Create a new git log stream from the parameter list in @args and return a iterator on it.
"new()" will happily accept any parameters, but note that "Git::Repository::Log::Iterator" expects the output to look like that of
"--pretty=raw", and so will force the the "--pretty" option (in case "format.pretty" is defined in the Git configuration).
Extra output (like patches) will be stored in the "extra" parameter of the "Git::Repository::Log" object. Decorations will be lost.
When unsupported options are recognized in the parameter list, "new()" will "croak()" with a message advising to use "run( 'log' => ... )"
to parse the output yourself.
next()
Return the next log item as a "Git::Repository::Log" object, or nothing if the stream has ended.
AUTHOR
Philippe Bruhat (BooK), "<book at cpan.org>"
COPYRIGHT
Copyright 2010 Philippe Bruhat (BooK), all rights reserved.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-12-28 Git::Repository::Log::Iterator(3pm)