Sponsored Content
Top Forums Shell Programming and Scripting how to make some condition when program/tool unsuccesfully ends with error.. Post 302405341 by Lukasito on Thursday 18th of March 2010 02:57:05 PM
Old 03-18-2010
what does [ $? -eq 0 ] means

//ah i've already noticed the $? is number of errors occured.

thanks

Last edited by Lukasito; 03-18-2010 at 04:25 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Is there any non graphical tool that make selective merge between text files?

whitout using awk / sad and so on? (3 Replies)
Discussion started by: umen
3 Replies

2. AIX

big brother monitoring tool - make failed

Hi, Does anyone has installed bb on a unix system ? I am trying to install bb on aix 5.3 but I have the following message: If someone can help me probably there is a tool that I need to install ? I don't have C compiler I install gcc instead and gcc++ etc ... bb:/home/bb/bb1.9g-btf/src/ $ make... (0 Replies)
Discussion started by: touny
0 Replies

3. Programming

Tool for make file

Hi, so far i am writting make file explicitly, is there is any tool is there to write make file automatically....if so please tell me about that... Thanks in advance Sarwan (4 Replies)
Discussion started by: sarwan
4 Replies

4. Linux

How to make a tool as 30-days evalution copy

Hi All, I am very curious to know that how to make a product/tool as evalution copy(trail version for 30days). I want to know this implemention process in linux(the tool is in Linux). If anybody have any scripts/articles/ideas please pass them to me. Please help me. Thanks in Advace,... (0 Replies)
Discussion started by: uday123
0 Replies

5. Shell Programming and Scripting

Make program only run by root

Hi all, i hope i got this in the right place, what i am trying to do is make a program only run by root, ie for instance user fred is logged in and uses firefox, what id like to do is change that so that when fred wants to use firefox he will be asked to enter root password before he is allowed to... (14 Replies)
Discussion started by: dave123
14 Replies

6. UNIX for Dummies Questions & Answers

In unix how we can test or check race condition in a c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (1 Reply)
Discussion started by: afroze
1 Replies

7. Programming

In unix how we can test or check race condition in c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (5 Replies)
Discussion started by: afroze
5 Replies

8. Programming

Help with a C program that acts like the make utility

Hi, I'm trying to create a C program that functions like the make utility in UNIX for personal use. My program would read in from a generic makefile and execute whatever is in that makefile but I'm not sure as to where I should start coding. I would appreciate any help. Thanks. (1 Reply)
Discussion started by: kratos.
1 Replies

9. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

10. Shell Programming and Scripting

Make expect exit the UNIX script in erreneous condition

Hi, I am writing a menu driven program using shell script. THe script will be collecting data by logging into the other servers and bringing back the data to home server to process it and accordingly issue commands. TO automate commands execution , I am using expect script. However I am not able... (5 Replies)
Discussion started by: ashima jain
5 Replies
rsm_memseg_import_open_barrier(3RSM)		      Remote Shared Memory Library Functions		      rsm_memseg_import_open_barrier(3RSM)

NAME
rsm_memseg_import_open_barrier, rsm_memseg_import_order_barrier, rsm_memseg_import_close_barrier - remote memory access error detection functions SYNOPSIS
cc [ flag... ] file... -lrsm [ library... ] #include <rsmapi.h> int rsm_memseg_import_open_barrier(rsmapi_barrier_t *barrier); int rsm_memseg_import_order_barrier(rsmapi_barrier_t *barrier); int rsm_memseg_import_close_barrier(rsmapi_barrier_t *barrier); DESCRIPTION
The rsm_memseg_import_open_barrier() and rsm_memseg_import_close_barrier() functions provide a means of remote memory access error detec- tion when the barrier mode is set to RSM_BARRIER_MODE_EXPLICIT. Open and close barrier operations define a span-of-time interval for error detection. A successful close barrier guarantees that remote memory access covered between the open barrier and close barrier have com- pleted successfully. Any individual failures which may have occured between the open barrier and close barrier occur without any notifica- tion and the failure is not reported until the close barrier. The rsm_memseg_import_order_barrier() function imposes the order-of-write completion whereby, with an order barrier, the write operations issued before the order barrier are all completed before the operations after the order barrier. Effectively, with the order barrier call, all writes within one barrier scope are ordered with respect to those in another barrier scope. RETURN VALUES
Upon successful completion, these functions return 0. Otherwise, an error value is returned to indicate the error. ERRORS
The rsm_memseg_import_open_barrier(), rsm_memseg_import_order_barrier(), and rsm_memseg_import_close_barrier() functions can return the following errors: RSMERR_BAD_SEG_HNDL Invalid segment handle RSMERR_BAD_BARRIER_PTR Invalid barrier pointer. The rsm_memseg_close_barrier() and rsm_memseg_order_barrier() functions can return the following errors: RSMERR_BARRIER_UNINITIALIZED Barrier not initialized. RSMERR_BARRIER_NOT_OPENED Barrier not opened. RSMERR_BARRIER_FAILURE Memory access error. RSMERR_CONN_ABORTED Connection aborted. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ |ATTRIBUTE TYPE |ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
rsm_memseg_import_init_barrier(3RSM), rsm_memseg_import_set_mode(3RSM), attributes(5) SunOS 5.11 8 Jun 2001 rsm_memseg_import_open_barrier(3RSM)
All times are GMT -4. The time now is 11:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy