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 DEBIAN
glgetprogramstage
GLGETPROGRAMSTAGE(3G) [FIXME: manual] GLGETPROGRAMSTAGE(3G)
NAME
glGetProgramStage - retrieve properties of a program object corresponding to a specified shader stage
C SPECIFICATION
void glGetProgramStageiv(GLuint program, GLenum shadertype, GLenum pname, GLint *values);
PARAMETERS
program
Specifies the name of the program containing shader stage.
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.
pname
Specifies the parameter of the shader to query. pname must be GL_ACTIVE_SUBROUTINE_UNIFORMS, GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS,
GL_ACTIVE_SUBROUTINES, GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH, or GL_ACTIVE_SUBROUTINE_MAX_LENGTH.
values
Specifies the address of a variable into which the queried value or values will be placed.
DESCRIPTION
glGetProgramStage queries a parameter of a shader stage attached to a program object. program contains the name of the program to which
the shader is attached. shadertype specifies the stage from which to query the parameter. pname specifies which parameter should be
queried. The value or values of the parameter to be queried is returned in the variable whose address is given in values.
If pname is GL_ACTIVE_SUBROUTINE_UNIFORMS, the number of active subroutine variables in the stage is returned in values.
If pname is GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS, the number of active subroutine variable locations in the stage is returned in values.
If pname is GL_ACTIVE_SUBROUTINES, the number of active subroutines in the stage is returned in values.
If pname is GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH, the length of the longest subroutine uniform for the stage is returned in values.
If pname is GL_ACTIVE_SUBROUTINE_MAX_LENGTH, the length of the longest subroutine name for the stage is returned in values. The returned
name length includes space for the null-terminator.
If there is no shader present of type shadertype, the returned value will be consistent with a shader containing no subroutines or
subroutine uniforms.
ERRORS
GL_INVALID_ENUM is generated if shadertype or pname is not one of the accepted values.
GL_INVALID_VALUE is generated if program is not the name of an existing program object.
SEE ALSO
glGetProgram()
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 GLGETPROGRAMSTAGE(3G)