11-02-2011
Gotcha! I was planning on changing the permissions to the unix script, just thought maybe I'd also have the location of this file defined as a variable in a private location. I'll try defining it in my .profile. Thanks guys!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
While logged on as root, I created a user 'usera'
I also created a group called 'groupa'
I need to modify the permission of the user i created to not have root privileges.
I also need to change groupa to be in 'others'
please help!
thanks,
nieves (3 Replies)
Discussion started by: mncapara
3 Replies
2. Shell Programming and Scripting
Hi
I am trying to add variables(float values) in a unix script but am getting an error
value=`expr $a + $b + $c`
The error I am getting is "expr: non-numeric argument"
I guess it has got to something with the decimal points.
Plz help (13 Replies)
Discussion started by: akashtcs
13 Replies
3. Shell Programming and Scripting
Hi,
I am running a Java program from a unix script. I need to pass a variable to the Java code from a file. Here are teh details:
cat Parm <<this is my Parameter file>>
queuename=queue1
and my shell script is :
#!/bin/ksh
. ./Parm
/opt/java1.5/bin/java -classpath ./java.jar... (1 Reply)
Discussion started by: sangharsh
1 Replies
4. Shell Programming and Scripting
I'm creating a script that asks a user for a variable
ex
read filename;
read numberinput;
I also have a bunch of files named file.0 file.1 ... file.55
I'm trying to delete all files (if they exist) about file.$numberinput.
Can someone help me out on how to include the variable as part... (6 Replies)
Discussion started by: jenix4545
6 Replies
5. Shell Programming and Scripting
Hi,
I am trying to use a database to store configurations in an environment definition scripts to make the configurations easily modifiable. (long story short - it is an easier process to make changes in the db than trying to deploy a file). The values will be stored in the database in the... (1 Reply)
Discussion started by: gbala
1 Replies
6. Shell Programming and Scripting
Hi All,
I am using ETL tool Datastage and is installed on Linux environment. Few environment variables are set in datastage. Now my requirement is to use those environment variables in a unix script.
Is there any option I can do it?
Sugeestions from people working on datastage and linux... (1 Reply)
Discussion started by: bghosh
1 Replies
7. Shell Programming and Scripting
I'm pretty new to scripting in Korn shell so please forgive me...
What I'm trying to do is to create a script that calls multiple other ksh scripts and defines variables for text files.
I need it to define my user defined variables (file paths, date & time stamps, etc that are currently in... (1 Reply)
Discussion started by: bluejwxn8
1 Replies
8. Shell Programming and Scripting
Dear Shell script Experts,
I am working on shell script which is defined here, qsub_seq.csh . The purpose of this script is to read few input files (with defined starting index and last index) and make processing faster over server.
For some task, I had 1064 of input files, so I wrote another... (8 Replies)
Discussion started by: emily
8 Replies
9. Shell Programming and Scripting
Hi,
I just define the variable in script and use those script in another script but the variable not recognize.
test1.sh
#!/bin/bash
DB="test_db"
USR="test_user"
PWD="test_pwd"
HST="24.254.87.12"
test2.sh
#!/bin/bash
./test1.sh
mysql -u $USR -p $PWD -h $HST... (2 Replies)
Discussion started by: fspalero
2 Replies
10. Shell Programming and Scripting
I have written a script to execute some sql statement via executable file.
It is working fine via command line, however when I schedule it in cron.
The executable file is looking for library file in its root directory.
Wonder where does cron run the script from, and can we get the script... (4 Replies)
Discussion started by: jaapar
4 Replies
LEARN ABOUT OSX
glgetuniformiv
GLGETUNIFORM(3G) OpenGL 3.3 GLGETUNIFORM(3G)
NAME
glGetUniformfv, glGetUniformiv - Returns the value of a uniform variable
C SPECIFICATION
void glGetUniformfv(GLuint program, GLint location, GLfloat *params);
void glGetUniformiv(GLuint program, GLint location, GLint *params);
PARAMETERS
program
Specifies the program object to be queried.
location
Specifies the location of the uniform variable to be queried.
params
Returns the value of the specified uniform variable.
DESCRIPTION
glGetUniform returns in params the value(s) of the specified uniform variable. The type of the uniform variable specified by location
determines the number of values returned. If the uniform variable is defined in the shader as a boolean, int, or float, a single value will
be returned. If it is defined as a vec2, ivec2, or bvec2, two values will be returned. If it is defined as a vec3, ivec3, or bvec3, three
values will be returned, and so on. To query values stored in uniform variables declared as arrays, call glGetUniform for each element of
the array. To query values stored in uniform variables declared as structures, call glGetUniform for each field in the structure. The
values for uniform variables declared as a matrix will be returned in column major order.
The locations assigned to uniform variables are not known until the program object is linked. After linking has occurred, the command
glGetUniformLocation() can be used to obtain the location of a uniform variable. This location value can then be passed to glGetUniform in
order to query the current value of the uniform variable. After a program object has been linked successfully, the index values for uniform
variables remain fixed until the next link command occurs. The uniform variable values can only be queried after a link if the link was
successful.
NOTES
If an error is generated, no change is made to the contents of params.
ERRORS
GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.
GL_INVALID_OPERATION is generated if program is not a program object.
GL_INVALID_OPERATION is generated if program has not been successfully linked.
GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.
ASSOCIATED GETS
glGetActiveUniform() with arguments program and the index of an active uniform variable
glGetProgram() with arguments program and GL_ACTIVE_UNIFORMS or GL_ACTIVE_UNIFORM_MAX_LENGTH
glGetUniformLocation() with arguments program and the name of a uniform variable
glIsProgram()
SEE ALSO
glCreateProgram(), glLinkProgram(), glUniform()
COPYRIGHT
Copyright (C) 2003-2005 3Dlabs Inc. Ltd. 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 GLGETUNIFORM(3G)