Hi I looked up the reference but couldn't figure out whats wrong with my log funtions in ANSI C, need this log functions for a memory compiler, please help!!
#include <stdio.h>
#include <math.h>
int main(void)
{
double d ;
double logB(double x, double base);
printf(" ... (2 Replies)
Hi ,
I have three funcions f1, f2 and f3 .
f1 calls f2 and f2 calls f3 .
I have a global variable "period" which i want to pass to f3 .
Can i pass the variable directly in the definition of f3 ?
Pls help .
sars (4 Replies)
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
I have a function like this
validate()
{
/* Inside this I will do some activites
}
How I can redirect this function to a log file , so that If I look into that log file I can understand ,is there any error happened inside the function or not (3 Replies)
I have to make a log function which will take any statement and write it to a file along with the time stamp.Right now I have the following code:
log()
{
echo "`date` `hostname`: $1" >> logfile
}
echo "Some statement."
log "Some statement."
This way I can see "Some... (7 Replies)
Hi
I have a shell script that does a whole bunch of things. For the sake of simplicity, assume it runs commands one two and three. What i ultimately need is the ability to display the output of the entire script on the screen as well as capture the output in a file. When I try to do it in the... (3 Replies)
I have a script which does gunzip, zip and untar.
Input to the script is file name and file directory (where file is located)
I am reading the input parameters as follows:
FILENAME=$1
FILEDIR=$2
I have created 3 functions that are as follows:
1) gunzip file
2) unzip file... (2 Replies)
c()
{
if something failed;then
echo "failed"
exit 1
fi
}
f()
{
functinona #if something failed call "c"
functionb #if something failed call "c"
}
f > log 2>&1 #put the log to file not print on the screen
I want all the stdout/stdrr to the log file... (3 Replies)
Dear All.
I have a script, which process files one by one. In the script I have two functions.
one sftp files to different server
the other from existing file create file with different name.
My question is:
Will sftp function recognize files names , which are created in another... (1 Reply)
Hi All,
Good Day, seeking for your assistance on how to not perform my 2nd, 3rd,4th etc.. function if my 1st function is in else condition.
#Body
function1()
{
if
then
echo "exist"
else
echo "not exist"
}
#if not exist in function1 my all other function will not proceed.... (4 Replies)
Discussion started by: meister29
4 Replies
LEARN ABOUT OSX
svk::log::changedpaths
SVK::Log::ChangedPaths(3) User Contributed Perl Documentation SVK::Log::ChangedPaths(3)NAME
SVK::Log::ChangedPaths - partly lazy list of SVK::Log::ChangedPath objects
SYNOPSIS
use SVK::Log::ChangedPaths;
my $changed_paths = SVK::Log::ChangedPaths->new( $root );
for my $changed_path ( $changed_paths->paths() ) {
...
}
DESCRIPTION
An object of this class represents a collection of details about the files/directories that were changed in a particular revision. Some
log filters want access to information about which paths were affected during a certain revision and others don't. Using this object
allows the calculation of path details to be postponed until it's truly needed.
METHODS
new
Accepts the return value of "SVK::Path->root()" as a parameter and constructs a SVK::Log::ChangedPaths object from it.
paths
Returns a list of SVK::Log::ChangedPath objects each of which represents the details of the changes to a particular path.
DIAGNOSTICS
None
CONFIGURATION AND ENVIRONMENT
SVK::Log::ChangedPaths requires no configuration files or environment variables.
DEPENDENCIES
o SVK::Log::ChangedPath
INCOMPATIBILITIES
None known
BUGS AND LIMITATIONS
None known
perl v5.10.0 2008-08-04 SVK::Log::ChangedPaths(3)