I am trying to script a query of a backup server that will display sessions that are "waiting" for a mount...
So for, i query my system which returns a process # that is waiting...
The output looks like this:
I then try to extract the number of seconds it has been waiting. That way, if it is considered too long, i can cancel it...
So far, here is what i have...
The result of "$WAITING" is displayed above. I tried sed using examples and the such but the last one i tried is showing me -after- the word "seconds". What i would like is to export the #### of seconds to my $RESULT. keep in mind that the seconds could be 1, 20, 300, 4335 etc...never the same lenght...
There could be 2 "waiting". One "waiting for access to output volume" and one "waiting for access to input volume"
I'd like to grab either or both if possible...
BTW, i am reading through some "sed" doc...but man...
Thanks.
Last edited by Franklin52; 05-07-2011 at 09:18 AM..
Reason: Please use code tags
I am having issue dispalying text file in browser using perl.
Here is my code:
#!/usr/bin/perl
print "content-type: text/html \n\n";
open (FH , "access.log") || die "Blah $!";
while (<FH>) {
print $_ ;
}
I have correct permissions and everything. The weired thing is when I... (1 Reply)
Hi,
My requirement is that I should search for a particular string and display the string only once if there is more occurrence of the same string in a file.
e.g In the given below log file,the string AMQ5037 comes twice.I want to search for this string and display it only once.grep will... (5 Replies)
Hi guys! I am very much new to UNIX...and I was just wondering on how you would display this text format in UNIX with only just one command :
Text 1
Text 2
Text 3
Texts are in aligned vertically in such format...Thanks for your help :) (8 Replies)
What would be the most succinct way of doing this (preferably in 1 line, maybe 2):
searching the first 10 characters of every line in a text file for a specific string, and if it was found, print out characters 11-20 of the line on which the string was found.
In this case, it's known that there... (13 Replies)
Hello All,
I am currently having an issue displaying a exponent value using perl,
I have a perl program which generates an xls file. This xls is populated with values from a database. But for a certain column which I have made explicitely text and also implemented keep_leading_zeroes()... (3 Replies)
Hi, I have a single colum file and I need to reformat the file so that it creates a new line every time it come to an IP address and the following lines are corresponding rows until it comes to the next IP address.
I want to turn this
172.xx.xx.xx
gwpusprdrp02_pv
seinwnprd03... (7 Replies)
I have a requirement to display a part of an html response that my application gets. The response looks like this:
<html><a href='com.aprisma.spectrum.app.sd.client.SDHyperlinkHandler' sdTicketHandle='cr:419900' ocAlarmId='506618ea-f013-102d-02a7-0050569d7aa8'... (3 Replies)
Hi,
I'm working on a project that requires formatted text to be displayed on the screen plugged into a Linux machine. I want to be able to control this text via a bash script and format it in a particular font and size. Changing the background colour would also be beneficial.
Does anyone know... (3 Replies)
I have a file storing some text
and another file storing some numbers
I want to display characters other than the specified place of strings
one.txt
xyz abc 233 skfo 4r443
sfs abc abcd sd fsdf sdfd
abc 11 abc 33 abc dsaf
two.txt
Nt_djd_k='5-6,7-9'
Nt_hh_l='3-6,7-8'
a=`grep... (4 Replies)
Discussion started by: rahulsk
4 Replies
LEARN ABOUT MOJAVE
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)