Sponsored Content
Full Discussion: Error in Comparison value
Top Forums Shell Programming and Scripting Error in Comparison value Post 302769318 by clx on Tuesday 12th of February 2013 01:37:36 AM
Old 02-12-2013
Please post the output of the script.
Specially echo "$count"

BTW,
1) ";" only required as the command terminator if multiple commands are on the same line
2) use -eq as the integer equality comparison instead ==
3) In select query, you should use emp_id = $emp_id_ ( Assuming the datatype is Number)
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

comparison

can anyone point me to a comparison of *nix file systems ? i think i prefer a journalling fs but i would like to see a comparison between several fs's before i make up my mind (2 Replies)
Discussion started by: cnf
2 Replies

2. UNIX for Dummies Questions & Answers

Unix comparison

I am very new to Unix. What are the similiarities and differences between ScoUnix and AIX5 if any? Where might i find the information? Which is better? (1 Reply)
Discussion started by: NewGuy100
1 Replies

3. Shell Programming and Scripting

Comparison error

My default shell is ksh. I'm making a simple comparison in a script. ... if then ... i keep getting the error " ] if if if I have also tried all of these with parentheses instead of brackets, nothing works. I know exists1 (I expect it to be 1 in my tests) is being set properly,... (2 Replies)
Discussion started by: lazerfoursix
2 Replies

4. Shell Programming and Scripting

need some help..Comparison

I need some help which would probably be for most of you a simple script. I need to read in the data from a .dat file and then compare avg to see who is the highest avg. Here is my script so far. #!/bin/ksh #reading in the data from lab3.dat filename=$1 while read name o1 o2 o3 o4 o5 o6... (0 Replies)
Discussion started by: bluesilo
0 Replies

5. Solaris

Error in String comparison

Hi, I am getting an error while executing the below code. The error is " then echo "string matches" fi Please help me to solve this error (3 Replies)
Discussion started by: sreedivia
3 Replies

6. Shell Programming and Scripting

$((...)) and $[...] comparison

Does $((mathematical expression)) and $ mean the same? (7 Replies)
Discussion started by: proactiveaditya
7 Replies

7. Shell Programming and Scripting

row Comparison

(5 Replies)
Discussion started by: number10
5 Replies

8. Shell Programming and Scripting

Error in if condition string comparison

Hello all! I need help in debugging following script. I have no idea where I am going wrong. #!/bin/bash for p1 in A1 TM MP do for p2 in A1 TM MP do for mp1 in N1 N2 do for mp2 in N1 N2 do for mp3 in N1 N2 do for mp4 in N1 N2 do for... (7 Replies)
Discussion started by: RLOA
7 Replies

9. UNIX for Dummies Questions & Answers

comparison

hi guys i need a program that can compare a value read from a com-port and one from the terminal. can somebody help me??? using linux kernel 2.6.14-M5 can only use standard function in sh and bash... (5 Replies)
Discussion started by: metal005
5 Replies

10. Shell Programming and Scripting

Help about comparison

Hello folks, I have two files, which have usernames, I want to see the contents of file1.txt which is missing in file2.txt and another comparison file2.txt contents which is missing in file1.txt. please suggest. file1.txt user u2 u8 a9 p9 p3 u4 z8 aaa ahe oktlo (7 Replies)
Discussion started by: learnbash
7 Replies
MPI_Get_count(3OpenMPI) 												   MPI_Get_count(3OpenMPI)

NAME
MPI_Get_count - Gets the number of top-level elements received. SYNTAX
C Syntax #include <mpi.h> int MPI_Get_count(MPI_Status *status, MPI_Datatype datatype, int *count) Fortran Syntax INCLUDE 'mpif.h' MPI_GET_COUNT(STATUS, DATATYPE, COUNT, IERROR) INTEGER STATUS(MPI_STATUS_SIZE), DATATYPE, COUNT, IERROR C++ Syntax #include <mpi.h> int Status::Get_count(const Datatype& datatype) const INPUT PARAMETERS
status Return status of receive operation (status). datatype Datatype of each receive buffer element (handle). OUTPUT PARAMETERS
count Number of received elements (integer). IERROR Fortran only: Error status (integer). DESCRIPTION
Returns the number of entries received. (We count entries, each of type datatype, not bytes.) The datatype argument should match the argu- ment provided by the receive call that set the status variable. (As explained in Section 3.12.5 in the MPI-1 Standard, "Use of General Datatypes in Communication," MPI_Get_count may, in certain situations, return the value MPI_UNDEFINED.) The datatype argument is passed to MPI_Get_count to improve performance. A message might be received without counting the number of ele- ments it contains, and the count value is often not needed. Also, this allows the same function to be used after a call to MPI_Probe. NOTES
If the size of the datatype is zero, this routine will return a count of zero. If the amount of data in status is not an exact multiple of the size of datatype (so that count would not be integral), a count of MPI_UNDEFINED is returned instead. ERRORS
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ func- tions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object. Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error. SEE ALSO
MPI_Get_elements Open MPI 1.2 September 2006 MPI_Get_count(3OpenMPI)
All times are GMT -4. The time now is 07:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy