Staring at (and comparing) the resultant scripts again, the $tablename is not used at all, and the actual $agname value is used for the input file name only. Why all that effort and complexity if you could have one single constant(!) script and call it with a parameter indicating the input file?
Like
, and in /tmp/final/scripts/ALL_retrieval.ksh you read your data from $1.
Writing a ksh script. If someone starts a process with:
test.ksh > date.log
How can I grab 'date.log' name as a variable in test.ksh?
I need to get the 'date.log' name (not the contents) as a variable...without entering something like 'test.ksh date.log > date.log' (4 Replies)
Hi folks
Please let me know if anyone knows how to handle this.
My KSH script -> testscript.ksh
cmd=$1
ENV="devl"
echo $cmd
This is how I call the script
./testscript.ksh 'ps -ef | grep br$ENV'
How do I get this to print the below text i.e $ENV should be substituted with the value... (5 Replies)
Hi,
I did the below.
$ print "\\n"
$
I am curious, why does \\n give two new lines? I would have thought that the first \ would escape the second \, and so we'd get \n printed. But we didn't.
Any ideas?
Thanks. (7 Replies)
Hi All,
In ksh script i'm trying to assign "sqlstmt1" varaible value,
update VAREntryTb set VAR10num = VAR1num * Mltplr where BusD = '$val1' and RunI = 1"`
Hence i wrote below statement, the issue with this is shell is expanding "*" character adn thus subistuting it with the content of my... (6 Replies)
hi all,
i have a shell (ksh) script where i am reading line by line from a grep command and i wanted to check if the grep command actually returned something or was null. i can do this by using -z :
if ; then .....
but this forces me to do something when $myVariable is null when i... (3 Replies)
Hi all,
The below command tries to copy ".tgz" instead of "hello_test.tgz" -- It seems as if the underscore gets in the way. I tried with different ways of using quotes, with no luck, unfortunately...it's probably very simple, but may I ask how this would be done:
How would the below be... (3 Replies)
Hello All,
I'm trying to write a script that will perform a dynamic match (of a dynamic variable) and set a variable to have the resulting (match) value.
The idea is that the environment variable to check ($1) and the regular expression to use ($2) are given as parameters.
For example,... (5 Replies)
Hello,
First post for Newbie as I am stumped. I need to get certain elements for a specific PID from the ps command. I am attempting to pass the value for the PID I want to retrieve the information for as a variable. When the following is run without using a variable, setting a specific PID,... (3 Replies)
Hi,,
I have the line below in a file:
$!VarSet |LFDSFN1| = '"E:\APC\Trials\20140705_427_Prototype Trial\Data\T4_20140705_Trial_Cycle_Data_13_T_Norm.txt" "VERSION=100 FILEEXT=\"*.txt\" FILEDESC=\"General Text\" "+""+"TITLE{SEARCH=NONE NAME=\"New Dataset\" LINE=1I want to write a script to change... (2 Replies)
Discussion started by: carlr
2 Replies
LEARN ABOUT DEBIAN
beagle_beaglejniwrapper
beagle.BeagleJNIWrapper(3) HMSBEAGLE beagle.BeagleJNIWrapper(3)NAME
beagle.BeagleJNIWrapper -
SYNOPSIS
Public Member Functions
native ResourceDetails[] getResourceList ()
native int createInstance (int tipCount, int partialsBufferCount, int compactBufferCount, int stateCount, int patternCount, int
eigenBufferCount, int matrixBufferCount, int categoryCount, int scaleBufferCount, final int[] resourceList, int resourceCount, long
preferenceFlags, long requirementFlags, InstanceDetails returnInfo)
native int finalize (int instance)
native int setPatternWeights (int instance, final double[] patternWeights)
native int setTipStates (int instance, int tipIndex, final int[] inStates)
native int getTipStates (int instance, int tipIndex, final int[] inStates)
native int setTipPartials (int instance, int tipIndex, final double[] inPartials)
native int setPartials (int instance, int bufferIndex, final double[] inPartials)
native int getPartials (int instance, int bufferIndex, int scaleIndex, final double[] outPartials)
native int setEigenDecomposition (int instance, int eigenIndex, final double[] eigenVectors, final double[] inverseEigenValues, final
double[] eigenValues)
native int setStateFrequencies (int instance, int stateFrequenciesIndex, final double[] stateFrequencies)
native int setCategoryWeights (int instance, int categoryWeightsIndex, final double[] categoryWeights)
native int setCategoryRates (int instance, final double[] inCategoryRates)
native int setTransitionMatrix (int instance, int matrixIndex, final double[] inMatrix, double paddedValue)
native int getTransitionMatrix (int instance, int matrixIndex, final double[] outMatrix)
native int updateTransitionMatrices (int instance, int eigenIndex, final int[] probabilityIndices, final int[] firstDerivativeIndices,
final int[] secondDervativeIndices, final double[] edgeLengths, int count)
native int updatePartials (final int instance, final int[] operations, int operationCount, int cumulativeScalingIndex)
native int waitForPartials (final int instance, final int[] destinationPartials, int destinationPartialsCount)
native int accumulateScaleFactors (final int instance, final int[] scaleIndices, final int count, final int cumulativeScalingIndex)
native int removeScaleFactors (final int instance, final int[] scaleIndices, final int count, final int cumulativeScalingIndex)
native int resetScaleFactors (final int instance, final int cumulativeScalingIndex)
native int copyScaleFactors (final int instance, final int destScalingIndex, final int srcScalingIndex)
native int calculateRootLogLikelihoods (int instance, final int[] bufferIndices, final int[] categoryWeightsIndices, final int[]
stateFrequenciesIndices, final int[] cumulativeScaleIndices, int count, final double[] outSumLogLikelihood)
native int calculateEdgeLogLikelihoods (int instance, final int[] parentBufferIndices, final int[] childBufferIndices, final int[]
probabilityIndices, final int[] firstDerivativeIndices, final int[] secondDerivativeIndices, final int[] categoryWeightsIndices, final
int[] stateFrequenciesIndices, final int[] scalingFactorsIndices, int count, final double[] outSumLogLikelihood, final double[]
outSumFirstDerivative, final double[] outSumSecondDerivative)
native int getSiteLogLikelihoods (final int instance, final double[] outLogLikelihoods)
Static Public Member Functions
static void loadBeagleLibrary () throws UnsatisfiedLinkError
Static Public Attributes
static final String LIBRARY_NAME = getPlatformSpecificLibraryName()
static BeagleJNIWrapper INSTANCE
Author
Generated automatically by Doxygen for HMSBEAGLE from the source code.
Version 1.0.0 Fri May 25 2012 beagle.BeagleJNIWrapper(3)