Sponsored Content
Top Forums UNIX for Dummies Questions & Answers While condition in shell script Post 302772738 by Yoda on Tuesday 26th of February 2013 03:42:22 PM
Old 02-26-2013
First operand is checking if string value: $driverName is equal to NULL ""

Second operand appears to be calling a function: checkFile by passing string value: $driverName as argument and checking if the return value is equal to "NOK"
This User Gave Thanks to Yoda For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need help with test condition in shell script

I'm new to scripting and I need help with a bourn shell script. What i'm trying to do is a test condition where "if the time is within 2 hours, it's true" and so on. The time is in the following format DATE=`/bin/date +"%Y%m%d%H%S"` for example, 20060907152000. So, what the script first... (9 Replies)
Discussion started by: pieman8080
9 Replies

2. Shell Programming and Scripting

Help with shell script to check the condition.

:) Hi, I want to script for this scenerio, OSR Settings Scenario : We are looking to find all the *.a files from the following locations in the filesystem of a server. OSR Directories /etc /bin /usr/bin /usr/sbin /var/adm These *.a files should have the permissions on... (12 Replies)
Discussion started by: sakthilinux
12 Replies

3. AIX

if condition in AIX5.3-10 shell script

True if file exists and has been modified since it was last read. if then command else exit fi i am on AIX5.3-10. it does not understand -N any other way. i can use -ot (file1 is older than file2), but prefer -N if possible. (3 Replies)
Discussion started by: tjmannonline
3 Replies

4. Shell Programming and Scripting

IF condition against a ARRAY in shell script

Hi, I want to check a particular string inserted by User to be checked against the values i already have in a ARRAY string using IF condition. Is this possible? if yes how to do that. example : i have a,b,c,d,e,f values in a array called values i asked user to enter a value: user entered... (2 Replies)
Discussion started by: kukretiabhi13
2 Replies

5. Shell Programming and Scripting

An issue with condition statement in shell script

Hello forum members. please go through the below mentioned issue and let me know the right solution. I have to write a script which runs another script .the executable script take input parmeters.so iam writing the the script below . Sample Code:Begins #! /bin/ksh echo " enter... (2 Replies)
Discussion started by: rajkumar_g
2 Replies

6. Shell Programming and Scripting

Errors in if condition validations-Shell Script

Hello All, i am facing difficulty in validating the values, kindly help me in resolving the issue. Thanks a lot in advance. -Chandra Script:Test.sh #! /bin/sh # *************************************************************************** # Function to display help function usage()... (1 Reply)
Discussion started by: duddukuri
1 Replies

7. Shell Programming and Scripting

Substring check in IF condition in shell script

I want to check if the string has the substring in IF condition then process... i tried below but not working if ]; then ............. field can be "reserved1" ....reservedn / fillspaces1 ... fillspacesn (4 Replies)
Discussion started by: greenworld123
4 Replies

8. Shell Programming and Scripting

How to exit from shell script if above condition fails?

HI cd ${back_home} if above back_home does not exist, then script shoul exit. Please let us know how to do that (7 Replies)
Discussion started by: buzzme
7 Replies

9. Shell Programming and Scripting

Need Help to add Condition in Shell Script..

Hi Team, I m very new to shell scripting , i want to add following condition in my script . Can anybody help me. There are three port in My node "$port" port_A port_B port_C I Want to add following Conditions in my script. If Node is connected to port_A and port_B script... (10 Replies)
Discussion started by: Ganesh Mankar
10 Replies

10. Shell Programming and Scripting

If condition shell script beginner

Hi all I have the folloing process that needs checking often: ps -ef | grep ih bscsrtx 206 15901 0 11:28:10 pts/6 0:00 fih -r4 bscsrtx 218 15901 0 11:28:27 pts/6 0:01 aih bscsrtx 29763 15901 4 11:27:16 pts/6 0:59 rdh -prih root 429 27268 0 11:30:15 pts/td ... (13 Replies)
Discussion started by: fretagi
13 Replies
EvmSrvStart(3)						     Library Functions Manual						    EvmSrvStart(3)

NAME
EvmSrvStart(), EvmSrvMessageGet() - event service functions SYNOPSIS
Remarks is not currently supported for general use. Library EVM Support Library Parameters service_name The name for this service. The name must be a service defined in the EVM daemon configuration file, .CR /etc/evmdaemon.conf . arg_string If this operand is not NULL, it is written to the connection when the service is started. transport Specify the type of connection to be made to the daemon. Because EVM currently supports only local connection the daemon, transport must always be set to NULL. If this argument is not NULL, an error occurs. EVM does not support remote connection. connection For this is the return operand. The calling routine passes this value to when it is done with the connection. For this is the service connection that is read for a message. event If this operand is not NULL on return, it contains an EVM event returned by the service. msg If this operand is not NULL on return, it contains a character string returned by the service. errmsg If this operand is not NULL on return, it contains an error message character string returned by the service. info If this operand is not NULL on return, it contains numeric information returned by the service. DESCRIPTION
The routine creates a service connection to the EVM daemon, requesting that the service identified as service_name be started. If the ser- vice is known to the daemon, it is started as a child process of the daemon, and the connection is transferred to the service process. If the arg_string is not NULL, the function then appends a newline character to it and writes it to the connection. The routine reads a single EVM service protocol message from the service connection identified by connection and returns it to the caller. The message may be a procedural protocol message, indicating that the service has started or terminated, or it may carry data. Procedural messages are handled by the API function. Data messages may be any one of the following: o An EVM event returned to the caller in event o A character string returned to the caller in msg o An error character string returned to the caller in errmsg In each of these cases, the data is returned to the caller only if the address passed to the function as the corresponding argument is not NULL. The function returns a non-null value in at most one of these return arguments, and sets the others to NULL. If the incoming message does not include data (for example, if it is a protocol message indicating that the service is terminating) all three of the arguments are set to NULL. The message may carry one information item, which is returned if info is not NULL. This value is used in the service termination protocol message to indicate the exit code of the service process. Notes is not currently supported for general use. RETURN VALUE
If a non-null pointer was supplied as the appropriate argument, a received data message is available in one of the three data return argu- ments. The service indicated that it was terminating. If the caller passed a non-null data argument, the service process's exit code is returned in the info operand. The service connection was closed by the service before a service termination message was received. This value is returned if the caller continues to attempt the call after the service has been ter- minated. ERRORS
The value of is not set. FILES
/etc/evmdaemon.conf evmd configuration file SEE ALSO
Commands evmget(1). Routines EvmConnDestroy(3). Files evmdaemon.conf(4). Event Management EVM(5). Event Connection EvmConnection(5). EVM Events EvmEvent(5). EvmSrvStart(3)
All times are GMT -4. The time now is 07:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy