Calling shell script within awk script throws error
I am getting the following error while passing parameter to a shell script called within awk script. Any idea what's causing this issue and how to ix it ? Thanks
sh: -c: line 0: syntax error near unexpected token `newline'
sh: -c: line 0: `./billdatecalc.sh <SetList>50/10000////D4B790E1////3/0</SetList>'
The "param" variable carries the following data "<SetList>50/10000////D4B790E1////3/0</SetList>"
I have a build script. It was created on Linux. For some reason, I got it to windows and modified it. And brought it back again to Linux.
Since there is the question of the ^M chars appearing, the way out is to do a dos2unix on the script file. This is done manually.
Is there a way to call... (4 Replies)
Hi all,
I have two ksh scripts
#sample1.sh
#!/bin/ksh
. ./sample2.sh
echo $fileExist
#sample2.sh
#!/bin/ksh
func()
{
i=1
return $a
}
func
echo $?
Here how should I return the value of sample2.sh back to sample1.sh?
Thanks in advance. (2 Replies)
Hi,
I am writing a script that needs to call a stored proc which would update a column in a table based on a condition.
I need to also capture the number of rows updated.
However, When I execute the script I keep getting this error:
./test_isql.sh: syntax error at line 33: `end of file'... (3 Replies)
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
HI,
We are using two shell scripts, script.sh,env.sh, where env.sh will be called inside script.sh. The variable inside env.sh is used as $var in script.sh.But while running the script its not identifying that variable. Is there any permission needed to call a script inside another script.
... (3 Replies)
Can someone let me know how could I achieve this
In one of per script I am calling the shell script but I need to so one thing that is one shell script call I need to pass pne argument.In below code I am calling my ftp script but here I want to pass one argument so how could I do this (e.g:... (5 Replies)
Hi,
I am working on a sever A.
I want to write a perl script to execute a shell script persent on the server B.
please help me in this.
thanks in advance. (3 Replies)
Hello there,
I am new to the awk scripting and getting the following error while running the script. Please can you advise me how to resolve this . Thanks
./sub_del_awk_lat.sh
awk: cmd. line:5: warning: escape sequence `\/' treated as plain `/'
awk: cmd. line:5: sed -n... (6 Replies)
Hi All,
I need to call a script in another server(Say B).So I logged in my local Machine(say A)using putty and given these command
ssh root@hostname
cd home\oracle
sh script.sh.
This is working perfectly.But when I have those command in a shell script and placed in my local... (2 Replies)
While I am trying to check the filename/s in IF statement of a shell script (RedHat Linux 6) I am getting below error:
File check:
filename_time2=`date --date='yesterday' +%Y-%m-%d`
cd /location/of/the/files/to/copy
if
then
cp server.log-$filename_time2* ../archive/new... (5 Replies)
Discussion started by: Dip
5 Replies
LEARN ABOUT CENTOS
glframebufferparameteri
GLFRAMEBUFFERPARAMET(3G) OpenGL Manual GLFRAMEBUFFERPARAMET(3G)NAME
glFramebufferParameteri - set a named parameter of a framebuffer
C SPECIFICATION
void glFramebufferParameteri(GLenum target, GLenum pname, GLint param);
PARAMETERS
target
The target of the operation, which must be GL_READ_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER or GL_FRAMEBUFFER.
pname
A token indicating the parameter to be modified.
param
The new value for the parameter named pname.
DESCRIPTION
glFramebufferParameteri modifies the current value of the parameter named pname in the framebuffer bound to target. target must be
GL_READ_FRAMEBFUFFER, GL_DRAW_FRAMEBUFFER or GL_FRAMEBUFFER. The token GL_FRAMEBUFFER is treated as GL_DRAW_FRAMEBUFFER. A non-default
framebuffer must be bound to target.
pname specifies the parameter to be modified. The following symbols are accepted in pname:
GL_FRAMEBUFFER_DEFAULT_WIDTH
param specifies the assumed with for a framebuffer object with no attachments. If a framebuffer has attachments then the width of those
attachments is used, otherwise the value of GL_FRAMEBUFFER_DEFAULT_WIDTH is used for the framebuffer. param must be greater than or
equal to zero and less than or equal to the value of GL_MAX_FRAMEBUFFER_WIDTH.
GL_FRAMEBUFFER_DEFAULT_HEIGHT
param specifies the assumed height for a framebuffer object with no attachments. If a framebuffer has attachments then the height of
those attachments is used, otherwise the value of GL_FRAMEBUFFER_DEFAULT_HEIGHT is used for the framebuffer. param must be greater
than or equal to zero and less than or equal to the value of GL_MAX_FRAMEBUFFER_HEIGHT.
GL_FRAMEBUFFER_DEFAULT_LAYERS
param specifies the assumed number of layers for a framebuffer object with no attachments. If a framebuffer has attachments then the
layer count of those attachments is used, otherwise the value of GL_FRAMEBUFFER_DEFAULT_LAYERS is used for the framebuffer. param must
be greater than or equal to zero and less than or equal to the value of GL_MAX_FRAMEBUFFER_LAYERS.
GL_FRAMEBUFFER_DEFAULT_SAMPLES
param specifies the assumed number of samples in a framebuffer object with no attachments. If a framebuffer has attachments then the
sample count of those attachments is used, otherwise the value of GL_FRAMEBUFFER_DEFAULT_SAMPLES is used for the framebuffer. param
must be greater than or equal to zero and less than or equal to the value of GL_MAX_FRAMEBUFFER_SAMPLE.
GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS
param specifies whether the framebuffer should assume identical sample locations and the same number of samples for all texels in the
virtual image. If param is zero, then the implementation may vary the position or the count of samples within the virtual image from
pixel to pixel, otherwise it will use the same sample position and count for all pixels in the virtual image.
ERRORS
GL_INVALID_ENUM is generated if target is not one of the accepted framebuffer targets.
GL_INVAILD_VALUE is generated if pname is GL_FRAMEBUFFER_DEFAULT_WIDTH and param is less than zero or greater than the value of
GL_MAX_FRAMEBUFFER_WIDTH.
GL_INVAILD_VALUE is generated if pname is GL_FRAMEBUFFER_DEFAULT_HEIGHT and param is less than zero or greater than the value of
GL_MAX_FRAMEBUFFER_HEIGHT.
GL_INVAILD_VALUE is generated if pname is GL_FRAMEBUFFER_DEFAULT_LAYERS and param is less than zero or greater than the value of
GL_MAX_FRAMEBUFFER_LAYERS.
GL_INVAILD_VALUE is generated if pname is GL_FRAMEBUFFER_DEFAULT_SAMPLES and param is less than zero or greater than the value of
GL_MAX_FRAMEBUFFER_SAMPLES.
GL_INVALID_OPERATION is generated if the default framebuffer is bound to target.
ASSOCIATED GETS
glGetFramebufferParameteriv().
SEE ALSO
glVertexAttribBinding(), glVertexAttribFormat(), glVertexAttribPointer(), glVertexBindingDivisor().
COPYRIGHT
Copyright (C) 2012 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 GLFRAMEBUFFERPARAMET(3G)