cat test.ksh
#!/usr/bin/ksh
VAR="Dear Friends \n How are you? \n Have a nice day \n"
export VAR
echo "Inside test.ksh";
./test.pl
cat test.pl
#!/usr/bin/perl
print "Inside test.pl \n";
print "$VAR";
Output:
./test.ksh
Inside test.ksh
Inside test.plWhat I want to achieve is, I... (1 Reply)
I'm looking at a line in a script:
&& DRROOT="/dir1" || DRROOT="/dir2" I'm trying to understand it.
Is there a "-d" command and is it seeing if /dir1 exists and, if so, set an environment variable named DRROOT to "/dir1", else set DRROOT to "/dir2" ?
Thanks,
-dog
---------- Post... (0 Replies)
hello everyone,
I have file with de-limited values in random order shown below, where C1V0 represents column1 value1,
C2V0 represents column2 value 2, and so on.
Column0 is a constant value which i didn't represent in the sample input format.
Column1 is a numeric column.
Column2 is a... (0 Replies)
this is my code to try and prinnt out a deck of cards. the print function worked when used inside main without being a function but now i cant get it to work as a function probably since i dont know how to pass a struct array in c. I gave it a shot but i keep getting an assortment of errors. The... (0 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am trying to encrypt the p-array. The first element will print correctly once returned from my encrypt... (2 Replies)
Hi!
(I guess this could of gone into the scripting forum, but Unix for Dummies seemed more appropriate. Please note that I am not in school, so Homework doesn't seem appropriate either. You guys can let me know if you think otherwise.)
I am following an exercise in a book on ksh scripting which... (2 Replies)
I am trying to find an example for reading an array instead of reading a file and send out an email in ksh. Can you please help is that possible?
Algorithm
#!/bin/ksh
i=0
set -A ARR
if
then
let i=$
ARR="A does n't match with B"
fi
if
then
let i=$
ARR="P does n't match with Q"... (11 Replies)
I have two T2000 servers connected to sun storage array StorEdge 3310 as follows:
CH0 connected to SNGL BUS CONF
CH1 connected to HOST1
CH2 open
CH3 connected to HOST2
DUAL BUS CONF open
I have created some luns which I can mount and use on HOST1 but from HOST2 I cant see them
... (3 Replies)
Hi All,
I am writing a script where the first 5 parameters are mandatory but the script should be able to handle a maximum of 9 parameters (with the remainig 4 optional)
I would like to load all parameters from 5th parameter positioninto an array.
the piece of code I am writing for this:... (0 Replies)
Can any one please tell me where the error in below script. Output is not as per my requirement. if condition not comparing the result of record count of a file with 1. where is the pbm in my script? Appreciate your help..
#!/bin/ksh
#Module-
#Summary- To move the file to direcotries if... (9 Replies)
Discussion started by: shivadanam
9 Replies
LEARN ABOUT DEBIAN
glshaderbinary
GLSHADERBINARY(3G) [FIXME: manual] GLSHADERBINARY(3G)NAME
glShaderBinary - load pre-compiled shader binaries
C SPECIFICATION
void glShaderBinary(GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length);
PARAMETERS
count
Specifies the number of shader object handles contained in shaders.
shaders
Specifies the address of an array of shader handles into which to load pre-compiled shader binaries.
binaryFormat
Specifies the format of the shader binaries contained in binary.
binary
Specifies the address of an array of bytes containing pre-compiled binary shader code.
length
Specifies the length of the array whose address is given in binary.
DESCRIPTION
glShaderBinary loads pre-compiled shader binary code into the count shader objects whose handles are given in shaders. binary points to
length bytes of binary shader code stored in client memory. binaryFormat specifies the format of the pre-compiled code.
The binary image contained in binary will be decoded according to the extension specification defining the specified binaryFormat token.
OpenGL does not define any specific binary formats, but it does provide a mechanism to obtain token vaues for such formats provided by such
extensions.
Depending on the types of the shader objects in shaders, glShaderBinary will individually load binary vertex or fragment shaders, or load
an executable binary that contains an optimized pair of vertex and fragment shaders stored in the same binary.
ERRORS
GL_INVALID_OPERATION is generated if more than one of the handles in shaders refers to the same shader object.
GL_INVALID_ENUM is generated if binaryFormat is not an accepted value.
GL_INVALID_VALUE is generated if the data pointed to by binary does not match the format specified by binaryFormat.
ASSOCIATED GETS
glGet() with parameter GL_NUM_SHADER_BINARY_FORMATS.
glGet() with parameter GL_SHADER_BINARY_FORMATS.
SEE ALSO
glGetProgram(), glGetProgramBinary(), glProgramBinary()
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/.
[FIXME: source] 05/30/2012 GLSHADERBINARY(3G)