Hi Gurus,
I have shell script in which i have to check if time is between to possible value or not. For that i am using following line of code
if
then
echo 'Found In Between'
echo $ftime
... (5 Replies)
:)
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)
Hi,
I am using RHEL5.
I have following if condition.
if
In the above condition, if the value of a contains word WARNING, it should match. i.e., WARNING_MESSAGE, CRITICAL WARNING, WARNING ALERT etc. it should match.
For b, alert error, ALERT ERROR, ERROR IMMEDIATE ACTION REQUIRED, etc... (2 Replies)
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)
Hi all,
ssh uname@remote_server 'cat /tmp/remote_file_name > home_dir/a512386/new/local_file_name'
The above given command is working fine.
but if i try to move the file only if exists in the remote server i.e) giving the same within if condition it executes but the file is not stored in my... (1 Reply)
while
do
if ;then
read driverName
else
driverName=""
fi
done
can anyone please explain what exactly is happening on 1st line...is it like the conditions being ORed...I have no clue about this. (4 Replies)
Hi,
I'm trying to automate part of a script which uses awk to grab out some lines of a log file based on certain fields matching. For example, my log file looks something like the following (but 1000s of lines):
1 Tom 123 abc 345
2 Dick 345 abc 678
3 Harry 567 abc 345
4 Tom 345 cde 345... (3 Replies)
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)
Hi Team,
If condition is not working properly and getting below error
# ./score1.sh
Enter your score ('q' for quit): 102
Enter your score ('q' for quit): q
./score1.sh: line 9: q: integer expression expected
Average is: 102%.
Exit.
Actual code
# Calculate the average of given... (3 Replies)
Discussion started by: Torrid
3 Replies
LEARN ABOUT OSF1
tis_cond_init
tis_cond_init(3) Library Functions Manual tis_cond_init(3)NAME
tis_cond_init - Initializes a condition variable.
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <tis.h>
int tis_cond_init(
pthread_cond_t *cond);
STANDARDS
None
PARAMETERS
Address of the condition variable (passed by reference) to be initialized.
DESCRIPTION
This routine initializes a condition variable (cond) with the DECthreads default condition variable attributes.
A condition variable is a synchronization object used in conjunction with a mutex. A mutex controls access to shared data. When threads
are present, a condition variable allows threads to wait for data to enter a defined state.
For more information about actions taken when threads are present, refer to the pthread_cond_init(3) description.
Your program can use the macro PTHREAD_COND_INITIALIZER to initialize statically allocated condition variables to the DECthreads default
condition variable attributes. Static initialization can be used only for a condition variable with storage class extern or static - auto-
matic (stack local) objects must be initialized by calling tis_cond_destroy(3). Use this macro as follows:
pthread_cond_t condition = PTHREAD_COND_INITIALIZER
When statically initialized, a condition variable should not also be initialized using tis_cond_init(3).
RETURN VALUES
If an error condition occurs, the following occurs: The routine returns an integer value indicating the type of error. The condition vari-
able is not initialized. The contents of condition variable cond are undefined.
The possible return values are as follows: Successful completion. The system lacks the necessary resources to initialize another condition
variable, or The system-imposed limit on the total number of condition variables under execution by a single user is exceeded. The imple-
mentation has detected an attempt to reinitialize the object referenced by cond, a previously initialized, but not yet destroyed condition
variable. The value specified by attr is not a valid condition variable. Insufficient memory exists to initialize the condition variable.
ERRORS
None
RELATED INFORMATION
Functions: tis_cond_broadcast(3), tis_cond_destroy(3), tis_cond_signal(3), tis_cond_wait(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
tis_cond_init(3)