Sponsored Content
Top Forums Programming Pass parameter from a child make to a parent Post 302459304 by jim mcnamara on Monday 4th of October 2010 10:08:16 AM
Old 10-04-2010
I guess I need to start from the beginning

Are you defining shell variables in the subscript, or is the subscript strictly a makefile?

What is the exact line in your file that calls the subscript?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

what are parent and child processes all about?

I don't follow what these are... this is what my text says... "When a process is started, a duplicate of that process is created. This new process is called the child and the process that created it is called the parent. The child process then replaces the copy for the code the parent... (1 Reply)
Discussion started by: xyyz
1 Replies

2. UNIX for Dummies Questions & Answers

kill parent and child

Hello all, I have gone through the search and looked at posting about idle users and killing processes. Here is my question I would like to kill an idle user ( which I can do) but how can I asure that all of his process is also killed whit out tracing his inital start PID. I have tried this on a... (4 Replies)
Discussion started by: larry
4 Replies

3. Shell Programming and Scripting

Parent/Child Processes

Hello. I have a global function name func1() that I am sourcing in from script A. I call the function from script B. Is there a way to find out which script called func1() dynamically so that the func1() can report it in the event there are errors? Thanks (2 Replies)
Discussion started by: yoi2hot4ya
2 Replies

4. UNIX for Advanced & Expert Users

how to make a parent wait on a child shells running in background?

Hi I have a shell script A which calls another 10 shell scripts which run in background. How do i make the parent script wait for the child scripts complete, or in other words, i must be able to do a grep of parent script to find out if the child scripts are still running. My Code: ... (1 Reply)
Discussion started by: albertashish
1 Replies

5. Shell Programming and Scripting

How to make the parent process to wait for the child process

Hi All, I have two ksh script. 1st script calls the 2nd script and the second script calls an 'C' program. I want 1st script to wait until the 'C' program completes. I cant able to get the process id for the 'C' program (child process) to make the 1st script to wait for the second... (7 Replies)
Discussion started by: sennidurai
7 Replies

6. Programming

To share fd between parent and child

i used function fork(). so i made two process. parent process accepted socket fd and writing to shared memory. then now. how can child process share parent's socket fd? is this possible? Thanks in advance (1 Reply)
Discussion started by: andrew.paul
1 Replies

7. Homework & Coursework Questions

Need help with deleting childīs parent and child subprocess

1. The problem statement, all variables and given/known data: I need to make an program that in a loop creates one parent and five children with fork(). The problem i'm trying to solve is how to delete the parent and child of the childīs process. 2. Relevant commands, code, scripts,... (0 Replies)
Discussion started by: WhiteFace
0 Replies

8. Shell Programming and Scripting

forking a child process and kill its parent to show that child process has init() as its parent

Hi everyone i am very new to linux , working on bash shell. I am trying to solve the given problem 1. Create a process and then create children using fork 2. Check the Status of the application for successful running. 3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies

9. UNIX for Dummies Questions & Answers

parent and child directory

does anyone know how to check in an 'if' statement if a particular directory is a child directory of a particular directory? help ~ (2 Replies)
Discussion started by: ymc1g11
2 Replies

10. Shell Programming and Scripting

How make parent to wait from child process?

Hi all, I am starting mgen5 for sometime depends on input from a file, in a child process. now I want to make parent to wait in this child process till mgen5 finishes, or timeout happens. could anyone please tell me how to make parent to wait in child process in shell script? thanks... (2 Replies)
Discussion started by: girijajoshi
2 Replies
GLTEXENV(3G)															      GLTEXENV(3G)

NAME
glTexEnvf, glTexEnvi, glTexEnvfv, glTexEnviv - set texture environment parameters C SPECIFICATION
void glTexEnvf( GLenum target, GLenum pname, GLfloat param ) void glTexEnvi( GLenum target, GLenum pname, GLint param ) PARAMETERS
target Specifies a texture environment. Must be GL_TEXTURE_ENV. pname Specifies the symbolic name of a single-valued texture environment parameter. Must be GL_TEXTURE_ENV_MODE. param Specifies a single symbolic constant, one of GL_MODULATE, GL_DECAL, GL_BLEND, or GL_REPLACE. C SPECIFICATION
void glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params ) void glTexEnviv( GLenum target, GLenum pname, const GLint *params ) PARAMETERS
target Specifies a texture environment. Must be GL_TEXTURE_ENV. pname Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE and GL_TEXTURE_ENV_COLOR. params Specifies a pointer to a parameter array that contains either a single symbolic constant or an RGBA color. DESCRIPTION
A texture environment specifies how texture values are interpreted when a fragment is textured. target must be GL_TEXTURE_ENV. pname can be either GL_TEXTURE_ENV_MODE or GL_TEXTURE_ENV_COLOR. If pname is GL_TEXTURE_ENV_MODE, then params is (or points to) the symbolic name of a texture function. Four texture functions may be specified: GL_MODULATE, GL_DECAL, GL_BLEND, and GL_REPLACE. A texture function acts on the fragment to be textured using the texture image value that applies to the fragment (see glTexParameter) and produces an RGBA color for that fragment. The following table shows how the RGBA color is produced for each of the three texture functions that can be chosen. C is a triple of color values (RGB) and A is the associated alpha value. RGBA values extracted from a texture image are in the range [0,1]. The subscript f refers to the incoming fragment, the subscript t to the texture image, the subscript c to the tex- ture environment color, and subscript v indicates a value produced by the texture function. A texture image can have up to four components per texture element (see glTexImage1D, glTexImage2D, glTexImage3D, glCopyTexImage1D, and glCopyTexImage2D). In a one-component image, Lt indicates that single component. A two-component image uses Lt and At. A three-component image has only a color value, Ct. A four-component image has both a color value Ct and an alpha value At. ---------------------------------------------------------------------- Base internal Texture functions GL_MODULATE GL_DECAL GL_BLEND GL_REPLACE ---------------------------------------------------------------------- GL_ALPHA Cv=Cf undefined Cv=Cf Cv=Cf Av=AfAt Av=Af Av=At ---------------------------------------------------------------------- GL_LUMINANCE Cv=LtCf undefined Cv=(1-Lt)Cf Cv=Lt +LtCc 1 Av=Af Av=Af Av=Af ---------------------------------------------------------------------- GL_LUMINANCE Cv=LtCf undefined Cv=(1-Lt)Cf Cv=Lt f3_ALPHA +LtCc 2 Av=AtAf Av=AtAf Av=At ---------------------------------------------------------------------- GL_INTENSITY Cv=CfIt undefined Cv=(1-It)Cf Cv=It +ItCc c Av=AfIt Av=(1-It)Af Av=It +ItAc ---------------------------------------------------------------------- GL_RGB Cv=CtCf Cv=Ct Cv=(1-Ct)Cf Cv=Ct +CtCc 3 Av=Af Av=Af Av=Af Av=Af ---------------------------------------------------------------------- GL_RGBA Cv=CtCf Cv=(1-At)Cf Cv=(1-Ct)Cf Cv=Ct +AtCt +CtCc 4 Av=AtAf Av=Af Av=AtAf Av=At ---------------------------------------------------------------------- If pname is GL_TEXTURE_ENV_COLOR, params is a pointer to an array that holds an RGBA color consisting of four values. Integer color compo- nents are interpreted linearly such that the most positive integer maps to 1.0, and the most negative integer maps to -1.0. The values are clamped to the range [0,1] when they are specified. Cc takes these four values. GL_TEXTURE_ENV_MODE defaults to GL_MODULATE and GL_TEXTURE_ENV_COLOR defaults to (0, 0, 0, 0). NOTES
GL_REPLACE may only be used if the GL version is 1.1 or greater. Internal formats other than 1, 2, 3, or 4 may only be used if the GL version is 1.1 or greater. When the GL_ARB_multitexture extension is supported, glTexEnv controls the texture environment for the current active texture unit, selected by glActiveTextureARB. GL_INVALID_ENUM is generated when target or pname is not one of the accepted defined values, or when params should have a defined constant value (based on the value of pname) and does not. GL_INVALID_OPERATION is generated if glTexEnv is executed between the execution of glBegin and the corresponding execution of glEnd. ASSOCIATED GETS
glGetTexEnv SEE ALSO
glActiveTextureARB(3G), glCopyPixels(3G), glCopyTexImage1D(3G), glCopyTexImage2D(3G), glCopyTexSubImage1D(3G), glCopyTexSubImage2D(3G), glCopyTexSubImage3D(3G), glTexImage1D(3G), glTexImage2D(3G), glTexImage3D(3G), glTexParameter(3G), glTexSubImage1D(3G), glTexSubImage2D(3G), glTexSubImage3D(3G) GLTEXENV(3G)
All times are GMT -4. The time now is 08:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy