Sponsored Content
Full Discussion: Not equal to in Unix
Top Forums Shell Programming and Scripting Not equal to in Unix Post 302530694 by pradeepbaliga on Tuesday 14th of June 2011 08:34:59 PM
Old 06-14-2011
Since its a or condition and always it will come to If condition Smilie change it to and condition and try
 

9 More Discussions You Might Find Interesting

1. Programming

Looking for equal to Visual Studio for Unix

Hello all Im looking for IDE to edit / compile / debug similar to VC++ on windows I need it for verity of UNIX platforms, what do you think is the best tool to use And that its learning carve is easy ( as much as possible) . Thanks (9 Replies)
Discussion started by: umen
9 Replies

2. Solaris

Stop+A equal

Hi, I have replaced my current Intel PC machine with Solaris 10, it use to have windows XP. I am sure alot of people already done this and i have seen Solaris running smoothly but having keyboard problem. What is the equal keys in a QWERTY keyboard for selection <Stop+A> ? Is there a... (5 Replies)
Discussion started by: tlee
5 Replies

3. Shell Programming and Scripting

Regex NOT EQUAL help

I have the following line to text: ExecuteQueue Name=default ThreadCount=60 I want to write a sed or awk function that eliminates everything before "ThreadCount" without taking into account what is actually in front of ThreadCount. Meaning there may be text in front of "ThreadCount" other... (6 Replies)
Discussion started by: ArterialTool
6 Replies

4. Shell Programming and Scripting

My Values are Equal but They are Not

Does anybody understand why this is not being interpreted as true. Script: #!/bin/bash errored=`grep "errored" new_update_scripts.txt` echo $errored = "errored" if ; then echo true else echo false fi Output: $ UpdateScripts errored = errored false (7 Replies)
Discussion started by: scottwmackey
7 Replies

5. Shell Programming and Scripting

while [ $x -ge 50 ] + and equal to zero ; then

while + and equal to zero ; then what to punt instead of phrase and equal to zero. it's bash thank you in advance (1 Reply)
Discussion started by: losh
1 Replies

6. Shell Programming and Scripting

If not equal to then loop

How do I go about amending this simple script that prompts for a yes/no response so that if neither Y or N are entered it will loop back back to the original prompt #!/bin/ksh echo "Enter yes of no" read answer if then echo "You selected yes" elif then echo "You selected no" elif... (5 Replies)
Discussion started by: gmears
5 Replies

7. UNIX for Dummies Questions & Answers

Same strings are not equal

Hi there can anyone help me please. I want to make a program to check if the executable file specified by the user exists in the directory. When I run this program particulary these lines of code does not work: if ("$fi" == "$name") then where It checks whether the specified file is equal to the... (1 Reply)
Discussion started by: FUTURE_EINSTEIN
1 Replies

8. UNIX for Dummies Questions & Answers

Want the UNIX code - I want to sum of the 1st column wherever the first 2nd and 3rd columns r equal

I have the code for the below things.. File1 has the content as below 8859 0 subscriberCreate 18 0 subscriberPaymentMethodChange 1650 0 subscriberProfileUpdate 7668 0 subscriberStatusChange 13 4020100 subscriberProfileUpdate 1 4020129 subscriberStatusChange 2 4020307 subscriberCreate 8831... (5 Replies)
Discussion started by: Mahen
5 Replies

9. UNIX for Advanced & Expert Users

awk not equal

Did I do something wrong with this awk not equal? For some reason it prints twice. >awk '{if ($4 != "root") print $1 " " $4 " " $5}' ls_test server10: njs nodeadm server10: njs nodeadm >grep server10 ls_test server10: drwxr-sr-x. 18 njs nodeadm 4096 Aug 16 09:42 /opt > (2 Replies)
Discussion started by: cokedude
2 Replies
_lwp_cond_signal(2)						   System Calls 					       _lwp_cond_signal(2)

NAME
_lwp_cond_signal, _lwp_cond_broadcast - signal a condition variable SYNOPSIS
#include <sys/lwp.h> int _lwp_cond_signal(lwp_cond_t *cvp); int _lwp_cond_broadcast(lwp_cond_t *cvp); DESCRIPTION
The _lwp_cond_signal() function unblocks one LWP that is blocked on the LWP condition variable pointed to by cvp. The _lwp_cond_broadcast() function unblocks all LWPs that are blocked on the LWP condition variable pointed to by cvp. If no LWPs are blocked on the LWP condition variable, then _lwp_cond_signal() and _lwp_cond_broadcast() have no effect. Both functions should be called under the protection of the same LWP mutex lock that is used with the LWP condition variable being sig- naled. Otherwise, the condition variable may be signalled between the test of the associated condition and blocking in _lwp_cond_wait(). This can cause an infinite wait. RETURN VALUES
Upon successful completion, 0 is returned. A non-zero value indicates an error. ERRORS
The _lwp_cond_signal() and _lwp_cond_broadcast() functions will fail if: EINVAL The cvp argument points to an invalid LWP condition variable. EFAULT The cvp argument points to an invalid address. SEE ALSO
_lwp_cond_wait(2), _lwp_mutex_lock(2) SunOS 5.10 8 Dec 1995 _lwp_cond_signal(2)
All times are GMT -4. The time now is 04:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy