08-14-2008
just type subroutine name and pass parameter as argument..
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Can i pass a parameter(not a file name) as a parameter to a awk program?
eg;
$awk -f test 1 2 3
here test is the filename...and 1,2,3 are the i/p parameters?
thank you:-) (2 Replies)
Discussion started by: unisam
2 Replies
2. Shell Programming and Scripting
i am calling a pl/sql procedure through a shell script, there is one IN and 2 OUT parameter required to pass to the procedure to execute..
My procedure is XX_CITIDIRECT_EXP_PKG.main_proc and In parameter is p_period which I wanto to pass 'MAY-06'.
Can anyone figure out, whats is wrong here
... (4 Replies)
Discussion started by: u263066
4 Replies
3. Shell Programming and Scripting
Hi all,
How to pass a parameter from a oracle pl/sql procedure parameter to shell environment and use it? (1 Reply)
Discussion started by: megh
1 Replies
4. Shell Programming and Scripting
HI all
I have a code like
##############################################
minyear()
{
curryear=$1
echo $curryear
}
##Main Program ##
minyear
exit
#######
when i execute "sh scriptname 2005" output should be like 2005 but the output is blank.
I guess i need to pass parameter to... (3 Replies)
Discussion started by: vasuarjula
3 Replies
5. UNIX for Dummies Questions & Answers
Hello
I have a simple code like this one:
#!/bin/ksh
VER=$1
cat /usr/text | while read line
do
echo $line
done
Let's say $1=1.0.0 and the contents of text is:
abcd.cfg
asdf
I would like the output to be like this
abcd1.0.0.cfg
asdf1.0.0
I am thinking of passing the... (5 Replies)
Discussion started by: khestoi
5 Replies
6. Shell Programming and Scripting
Hi,
I am new in Ubuntu, I will be glud to know:
1. How to pass a parameter from the terminal to a file that I write in shell script. What is the command line I need to write in the terminal?
2. How to get the parameter in the file? What do I need to write in the file?
3. What kind of file is... (1 Reply)
Discussion started by: vess
1 Replies
7. Shell Programming and Scripting
Hello All,
I have 2 perl sub-routines.
my $myDir = myDir_path;
my $file;
sub convert(){
system ("./$myConvertScript >> $myDir/$file_CONV" );
$file2 = $myDir/$file_CONV;
}
sub addDB(){
open(CONF, $config)
or die "Cannot Open $config for reading. ";
while(<CONF>){... (1 Reply)
Discussion started by: ad23
1 Replies
8. Shell Programming and Scripting
Hi,
I have following for loop , please let me know how to get ${TXP_EXT_TABLE_${i}_SQL} parameter with 1DAY and 7DAY values.
for i in 1DAY 7DAY
do
${NZSQL_DIR}/nzsql -h ${HOST} -time -v ON_ERROR_STOP=1 -f ${SQL_DIR}/${TXP_EXT_TABLE_${i}_SQL} > ${TMP_LOG_FILE} 2>&1
done
... (4 Replies)
Discussion started by: sandy162
4 Replies
9. Shell Programming and Scripting
I am using below code to connect terdata and getting the query result in a file.Now i want to use same code for different tables,plz tell me how to pass table name as parameter.i tried using as below code but not working.
bteq < /download/viv/dev/ops/Scripts/ter.sh FLTORGTKR_ORG_etc..
... (1 Reply)
Discussion started by: katakamvivek
1 Replies
LEARN ABOUT CENTOS
glgetactivesubroutineuniform
GLGETACTIVESUBROUTIN(3G) OpenGL Manual GLGETACTIVESUBROUTIN(3G)
NAME
glGetActiveSubroutineUniform - query a property of an active shader subroutine uniform
C SPECIFICATION
void glGetActiveSubroutineUniformiv(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
PARAMETERS
program
Specifies the name of the program containing the subroutine.
shadertype
Specifies the shader stage from which to query for the subroutine parameter. shadertype must be one of GL_VERTEX_SHADER,
GL_TESS_CONTROL_SHADER, GL_TESS_EVALUATION_SHADER, GL_GEOMETRY_SHADER or GL_FRAGMENT_SHADER.
index
Specifies the index of the shader subroutine uniform.
pname
Specifies the parameter of the shader subroutine uniform to query. pname must be GL_NUM_COMPATIBLE_SUBROUTINES,
GL_COMPATIBLE_SUBROUTINES, GL_UNIFORM_SIZE or GL_UNIFORM_NAME_LENGTH.
values
Specifies the address of a into which the queried value or values will be placed.
DESCRIPTION
glGetActiveSubroutineUniform queries a parameter of an active shader subroutine uniform. program contains the name of the program
containing the uniform. shadertype specifies the stage which which the uniform location, given by index, is valid. index must be between
zero and the value of GL_ACTIVE_SUBROUTINE_UNIFORMS minus one for the shader stage.
If pname is GL_NUM_COMPATIBLE_SUBROUTINES, a single integer indicating the number of subroutines that can be assigned to the uniform is
returned in values.
If pname is GL_COMPATIBLE_SUBROUTINES, an array of integers is returned in values, with each integer specifying the index of an active
subroutine that can be assigned to the selected subroutine uniform. The number of integers returned is the same as the value returned for
GL_NUM_COMPATIBLE_SUBROUTINES.
If pname is GL_UNIFORM_SIZE, a single integer is returned in values. If the selected subroutine uniform is an array, the declared size of
the array is returned; otherwise, one is returned.
If pname is GL_UNIFORM_NAME_LENGTH, a single integer specifying the length of the subroutine uniform name (including the terminating null
character) is returned in values.
ERRORS
GL_INVALID_ENUM is generated if shadertype or pname is not one of the accepted values.
GL_INVALID_VALUE is generated if index is greater than or equal to the value of GL_ACTIVE_SUBROUTINES.
GL_INVALID_VALUE is generated if program is not the name of an existing program object.
ASSOCIATED GETS
glGetProgramStage() with argument GL_ACTIVE_SUBROUTINE_UNIFORMS
SEE ALSO
glGetSubroutineIndex(), glGetActiveSubroutineUniformName(), glGetProgramStage()
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/.
AUTHORS
opengl.org
opengl.org 06/10/2014 GLGETACTIVESUBROUTIN(3G)