01-15-2009
Thankyou Gayucvns
I know != is not equal to. If I want to put an "or" condition instead of an && would you know the command?
Layla
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys, Im trying to have a script that evaluates multiple conditions :
test.sh:
if
then
echo "host $1"
else
if
then
echo "host $1"
else
echo $1 not valid
exit 1
fi
when I do
./test.sh brazil1
I get: (4 Replies)
Discussion started by: bashshadow1979
4 Replies
2. Shell Programming and Scripting
./script 89
The script will extract the last digit of the input parameter. example, that is 4. This will be compared to the last digit of the current day of the month ( like day 14; that is 4). A message will displayed on the screen indicating if the digits are the same or not. (1 Reply)
Discussion started by: singh is king
1 Replies
3. Shell Programming and Scripting
Hi All,
I am new to shell scripting.
Can any one say what is wrong in this if statement, that uses multiple conditions
if
then
***************
else
if ( -z $pcs && "$night_time_calc" > "$night_time" )
then
********************************
... (4 Replies)
Discussion started by: ssenthilkumar
4 Replies
4. Shell Programming and Scripting
Currently this is what I am trying
while || && ]; do
I want to continue if the first condition or both the second and third are true but I am getting a too many arguments error.
Can someone help me out? (5 Replies)
Discussion started by: whdr02
5 Replies
5. Shell Programming and Scripting
I have this IF working fine, testing if a char is a digit:
if ; then
_VALUE=$_VALUE$_CHAR
else
_ISDIGIT="false"
fi
Then I add a second condition to test if the char is either a digit or a *
if ]; then
_VALUE=$_VALUE$_CHAR
... (11 Replies)
Discussion started by: Flavius
11 Replies
6. Shell Programming and Scripting
Dear Expert,
Below code is for to take the backup of database by daily time stamp. I need vital help to make my script automatic sending me email if it sucess or fail.
echo on
@REM Seamonkey's quick date batch (MMDDYYYY format)
@REM Setups %date variable
@REM First parses month, day, and... (6 Replies)
Discussion started by: Alone
6 Replies
7. Shell Programming and Scripting
All,
I'm having fighting a losing battle with what I though would be simple.
My goal is this: Show a zenity progress or info dialog until the system obtains an ip address, then close the dialog and continue through the rest of the script.
Right now I've got the following:
ip=`ifconfig |... (2 Replies)
Discussion started by: timbrammer91091
2 Replies
8. Shell Programming and Scripting
Hi ALL
I have a script where in i need to check for several values in if conditons but when i execute the script it throws error such as "TOO MANY ARGUMENTS"
if
then
msg="BM VAR Issue :: bmaRequestVAR=$bmaRequestVAR , nltBMVAR=$nltBMVAR , bmaResponseVAR=$bmaResponseVAR ,... (10 Replies)
Discussion started by: nikhil jain
10 Replies
9. Shell Programming and Scripting
#if
if
then
echo $varNO >> AgriN.csv
fi
done < data
The above script throws error such as integer expression expected. How do i rectify that?? (4 Replies)
Discussion started by: nikhil jain
4 Replies
10. Shell Programming and Scripting
I'm using the below one..
#!/bin/ksh
File=$3
if ; then
echo "Script"
elif ] ;then
echo "Passed k or f option"
else "Please check the Input passed"
fi
Command line argument is "k" or -f and file is exist then... (3 Replies)
Discussion started by: Roozo
3 Replies
LEARN ABOUT OSX
glfencesync
GLFENCESYNC(3G) OpenGL 3.3 GLFENCESYNC(3G)
NAME
glFenceSync - create a new sync object and insert it into the GL command stream
C SPECIFICATION
GLsync glFenceSync(GLenum condition, GLbitfield flags);
PARAMETERS
condition
Specifies the condition that must be met to set the sync object's state to signaled. condition must be GL_SYNC_GPU_COMMANDS_COMPLETE.
flags
Specifies a bitwise combination of flags controlling the behavior of the sync object. No flags are presently defined for this operation
and flags must be zero.[1]
DESCRIPTION
glFenceSync creates a new fence sync object, inserts a fence command into the GL command stream and associates it with that sync object,
and returns a non-zero name corresponding to the sync object.
When the specified condition of the sync object is satisfied by the fence command, the sync object is signaled by the GL, causing any
glWaitSync(), glClientWaitSync() commands blocking in sync to unblock. No other state is affected by glFenceSync or by the execution of the
associated fence command.
condition must be GL_SYNC_GPU_COMMANDS_COMPLETE. This condition is satisfied by completion of the fence command corresponding to the sync
object and all preceding commands in the same command stream. The sync object will not be signaled until all effects from these commands on
GL client and server state and the framebuffer are fully realized. Note that completion of the fence command occurs once the state of the
corresponding sync object has been changed, but commands waiting on that sync object may not be unblocked until after the fence command
completes.
NOTES
glFenceSync is only supported if the GL version is 3.2 or greater, or if
the ARB_sync extension is supported.
.SH "ERRORS"
GL_INVALID_ENUM is generated if condition is not GL_SYNC_GPU_COMMANDS_COMPLETE.
GL_INVALID_VALUE is generated if flags is not zero.
Additionally, if glFenceSync fails, it will return zero.
SEE ALSO
glDeleteSync(), glGetSync(), glWaitSync(), glClientWaitSync()
COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication
License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
NOTES
1.
flags is a placeholder for anticipated future extensions of fence sync object capabilities.
OpenGL 3.3 03/08/2011 GLFENCESYNC(3G)