Hi all,
I have a issue... Is it possible to compare integer value with decimal value.
If it is not possible,then how can i compare 2 decimal values in born shell.thanks! (3 Replies)
Hi All,
i am doung sup up of amount column in my file.
tot_val=`awk '{a+=$0}END{printf "%.5f\n",a}' amount`
then i have a checksum in footer.
chk_sum=`tail -1 $FILE_NAME | cut -d~ -f7 | cut -c2-`
but the problem is while executing 1st command i am getting :
27720.75000
& while... (3 Replies)
How can I compare two integer values which is stored in char pointers?
suppose I have char *a and char *b having values 10 and 20. how can i find the shorter value? (1 Reply)
Please see how can I do this:
File A (three columns):
X1,Y1,1.01
X2,Y2,2.02
X3,Y3,4.03
File B (three columns):
X1,Y1,1
X2,Y2,2
X3,Y3,4.0005
Now I have to compare file A and B based on the integer part of column 3. Means first 2 rows should be OK and the third row should not satisfy... (12 Replies)
i need to do camparisions like the below.
For the case when first=10 and second=9.9 the scripts displays process failed.
I need to be able to convert the values to integer before doing the comparision.
Like 9.9 should be rounded over to 10 before doing comparision.
Please advice how can... (3 Replies)
I am running some commands and I am trying to get an output into a variable. I am having problem when I try to put that value in while loop, it says integer value expected. What's the best way to accomplish this
remaining=$(symclone -sid XXX -f Clone_test query | grep MB | awk '{print... (1 Reply)
I am on HP-UX using ksh in the script.
MaxSal=`sqlplus -silent /nolog <<EOF
connect / as sysdba
whenever sqlerror exit sql.sqlcode
set pagesize 0 feedback off verify off heading off echo off
select max(sal) from emp1;
select max(sal) from emp2;
select max(sal) from emp3;
exit;
EOF`... (3 Replies)
Hi,
0.23 2.94% 0.00 0.00% 17.8G 55.7% 19.6G 40.9% 630 0.00%
0.06 0.77% - - 7524M 22.9% 15.6G 32.6% - -
From the above sample output. I need to compare whether the 6th field is more than 10G..if so print the entire line. Here the 6th field is memory
TIA (5 Replies)
Discussion started by: Sumanthsv
5 Replies
LEARN ABOUT CENTOS
papi_strerror
PAPI_strerror(3) PAPI PAPI_strerror(3)NAME
PAPI_strerror -
Returns a string describing the PAPI error code.
SYNOPSIS Detailed Description
C Interface:
#include <papi.h>
char * PAPI_strerror( int errorCode );
Parameters:
code -- the error code to interpret
Return values:
*error -- a pointer to the error string.
NULL -- the input error code to PAPI_strerror() is invalid.
PAPI_strerror() returns a pointer to the error message corresponding to the error code code. If the call fails the function returns the
NULL pointer. This function is not implemented in Fortran.
Example:
* int ret;
* int EventSet = PAPI_NULL;
* int native = 0x0;
* char error_str[PAPI_MAX_STR_LEN];
*
* ret = PAPI_create_eventset(&EventSet);
* if (ret != PAPI_OK)
* {
* fprintf(stderr, "PAPI error %d: %s0, ret, PAPI_strerror(retval));
* exit(1);
* }
* // Add Total Instructions Executed to our EventSet
* ret = PAPI_add_event(EventSet, PAPI_TOT_INS);
* if (ret != PAPI_OK)
* {
* PAPI_perror( "PAPI_add_event");
* fprintf(stderr,"PAPI_error %d: %s0, ret, error_str);
* exit(1);
* }
* // Start counting
* ret = PAPI_start(EventSet);
* if (ret != PAPI_OK) handle_error(ret);
*
See Also:
PAPI_perror PAPI_set_opt PAPI_get_opt PAPI_shutdown PAPI_set_debug
Author
Generated automatically by Doxygen for PAPI from the source code.
Version 5.2.0.0 Tue Jun 17 2014 PAPI_strerror(3)