I have a Korn shell script that executes a number of commands on a remote server.
Is it possible to feed in the last exit code of the rsh commands (i.e. something like $?) to a variable within the local shell script?
I tried the following:
returncode=$(rsh spns31 ".... (1 Reply)
i have to run set of commands
command1
command2
command3
command4
Now Whenever any of these command fails i should quit while capturing error message.
Is there a better way then checking for $? after each command. (1 Reply)
Hi,
I am wondering how I can check the return value of all commands in a pipe such as
gzip -dc file.gz | sort -u > output.txt
If I run this sequence in bash and check $?, I get the return status from sort. But I want to know if the initial gzip failed.
Similarly for longer pipe chains,... (6 Replies)
Hello
I have a script which emails identifies the user ID of a user and sends them an email. A user can enter part of the name of the person he/wants to send the email to. Then I use the ypcat command to identify the UID of that person.
The problem I'm having, is building in an error trap... (1 Reply)
Hi
I want to output the results of multiple commands to a single file.
I use simple Ping, telnet commands to check the connectivity to many servers.
Can i execute all the commands and write the output to a file instead of executing them one by one?
Thanks
Ashok (2 Replies)
This is a three step process:
a) Upload date ->scrub\prep data,
b) insert into db,
c) return php results page.
I have a question about the best practices for unix to process this.
I have data from a flat file that I've scrubbed and cleaned with sed and awk. When it is complete I have an... (0 Replies)
Good day every one.
When a use df -h comand on my read hat linux server i get something like this:
/dev/mapper/Vg02-Lv19 30G 29G 145M 100% /app
Then when i do du -sh /app/
i get
12G /app/
For me it is meaning that only 12G was used on /app partition.
How can i see where are... (9 Replies)
cmd()
{
echo " "
echo "$(whoami)@$(hostname):$(pwd)# $*"
results=`eval $*`
echo $results
}
I want to get the eval $* 's return value and pass it to a new variable $val, and get "eval $*" 's the ... (7 Replies)
Hello and thanks in advance for any help anyone can offer me
I'm trying to learn the find command and thought I was understanding it... Apparently I was wrong. I was doing compound searches and I started getting weird results with the -size test. I was trying to do a search on a 1G file owned by... (14 Replies)
Discussion started by: bodisha
14 Replies
LEARN ABOUT OSX
glbeginconditionalrender
GLBEGINCONDITIONALRE(3G) OpenGL 3.3 GLBEGINCONDITIONALRE(3G)NAME
glBeginConditionalRender - start conditional rendering
C SPECIFICATION
void glBeginConditionalRender(GLuint id, GLenum mode);
PARAMETERS
id
Specifies the name of an occlusion query object whose results are used to determine if the rendering commands are discarded.
mode
Specifies how glBeginConditionalRender interprets the results of the occlusion query.
C SPECIFICATION
void glEndConditionalRender(void);
DESCRIPTION
Conditional rendering is started using glBeginConditionalRender and ended using glEndConditionalRender. During conditional rendering, all
vertex array commands, as well as glClear() and glClearBuffer() have no effect if the (GL_SAMPLES_PASSED) result of the query object id is
zero, or if the (GL_ANY_SAMPLES_PASSED) result is GL_FALSE. The results of commands setting the current vertex state, such as
glVertexAttrib() are undefined. If the (GL_SAMPLES_PASSED) result is non-zero or if the (GL_ANY_SAMPLES_PASSED) result is GL_TRUE, such
commands are not discarded. The id parameter to glBeginConditionalRender must be the name of a query object previously returned from a call
to glGenQueries(). mode specifies how the results of the query object are to be interpreted. If mode is GL_QUERY_WAIT, the GL waits for
the results of the query to be available and then uses the results to determine if subsequent rendering commands are discarded. If mode is
GL_QUERY_NO_WAIT, the GL may choose to unconditionally execute the subsequent rendering commands without waiting for the query to complete.
If mode is GL_QUERY_BY_REGION_WAIT, the GL will also wait for occlusion query results and discard rendering commands if the result of the
occlusion query is zero. If the query result is non-zero, subsequent rendering commands are executed, but the GL may discard the results of
the commands for any region of the framebuffer that did not contribute to the sample count in the specified occlusion query. Any such
discarding is done in an implementation-dependent manner, but the rendering command results may not be discarded for any samples that
contributed to the occlusion query sample count. If mode is GL_QUERY_BY_REGION_NO_WAIT, the GL operates as in GL_QUERY_BY_REGION_WAIT, but
may choose to unconditionally execute the subsequent rendering commands without waiting for the query to complete.
NOTES
glBeginConditionalRender and glEndConditionalRender are available only if the GL version is 3.0 or greater.
The GL_ANY_SAMPLES_PASSED query result is available only if the GL version is 3.3 or greater.
ERRORS
GL_INVALID_VALUE is generated if id is not the name of an existing query object.
GL_INVALID_ENUM is generated if mode is not one of the accepted tokens.
GL_INVALID_OPERATION is generated if glBeginConditionalRender is called while conditional rendering is active, or if glEndConditionalRender
is called while conditional rendering is inactive.
GL_INVALID_OPERATION is generated if id is the name of a query object with a target other than GL_SAMPLES_PASSED or GL_ANY_SAMPLES_PASSED.
GL_INVALID_OPERATION is generated if id is the name of a query currently in progress.
SEE ALSO
glGenQueries(), glDeleteQueries(), glBeginQuery()
COPYRIGHT
Copyright (C) 2009 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/.
OpenGL 3.3 03/08/2011 GLBEGINCONDITIONALRE(3G)