08-26-2014
I am lost here.
Where are you getting the three byte binary character(s) from?
Space and tllde are valid shell values as I didn't want to use the full binary range...
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Maybe my question is too simple but till now i couldn't figure about a solution :(
I have a bash script scheduled in cron:
<cron time parameters> my_script.sh > result.log 2>&1
By this way i can have standard output and standard error in my result.log file
Now i want my script... (2 Replies)
Discussion started by: Pescator
2 Replies
2. Shell Programming and Scripting
Org file
192.168.1.10 d:\adir\xdir
192.168.1.11 d:\bdir\ydir
want to covert it into
robocopy \\192.168.1.10\d$\adir\xdir\log* some_localdir\adir
robocopy \\192.168.1.10\d$\adir\ydir\log* some_localdir\bbdir (5 Replies)
Discussion started by: ydk
5 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I'm trying to write a bash script that will query the current system time (OS X 10.6.6) and then convert the output from HH:MM:SS into time in seconds. The output of the system time command (systemsetup -gettime) is returned as:
Time: HH:MM:SS
so I wanted to use awk -F: to grab... (5 Replies)
Discussion started by: xaiu
5 Replies
4. Shell Programming and Scripting
Hi Folks,
I know on one side there is script and on another side there is smart script. I am able to achieve what I got but thought there has to be a code which doesn't require multiple lines. So if you guys can help me out than it will be awesome. Also I wrote in cshell but if can get both the... (4 Replies)
Discussion started by: dixits
4 Replies
5. Shell Programming and Scripting
I am embedding bash in cpp. Can the bash code be hidden (when we cat the executable to not be able to see the bash code)
The simple code I am using:
#include <iostream>
#include <cstdlib>
using namespace std;
#define test1 "\
#!/bin/sh --posix \n\
echo... (1 Reply)
Discussion started by: frad
1 Replies
6. Shell Programming and Scripting
i have defined a function ln_s() for customizing the ln command in script1.sh.
more script1.sh
echo "Starting Execution"
./script2.sh
echo "End of Execution"
ln_s(){
] && return
ln -s "$1" "$2"
}
My script1.sh executes another script2.sh which has the following entry
more script2.sh... (12 Replies)
Discussion started by: mohtashims
12 Replies
7. Shell Programming and Scripting
Hi,
I need to perform the untar and rm operation if the file found is a .tar and does not have test.tar or hello.tar as the file names.
Below is the loop to check the same.
for tf in *.tar
do if ]
then found=1
... (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT CENTOS
glgetprogrambinary
GLGETPROGRAMBINARY(3G) OpenGL Manual GLGETPROGRAMBINARY(3G)
NAME
glGetProgramBinary - return a binary representation of a program object's compiled and linked executable source
C SPECIFICATION
void glGetProgramBinary(GLuint program, GLsizei bufsize, GLsizei *length, GLenum *binaryFormat, void *binary);
PARAMETERS
program
Specifies the name of a program object whose binary representation to retrieve.
bufSize
Specifies the size of the buffer whose address is given by binary.
length
Specifies the address of a variable to receive the number of bytes written into binary.
binaryFormat
Specifies the address of a variable to receive a token indicating the format of the binary data returned by the GL.
binary
Specifies the address an array into which the GL will return program's binary representation.
DESCRIPTION
glGetProgramBinary returns a binary representation of the compiled and linked executable for program into the array of bytes whose address
is specified in binary. The maximum number of bytes that may be written into binary is specified by bufSize. If the program binary is
greater in size than bufSize bytes, then an error is generated, otherwise the actual number of bytes written into binary is returned in the
variable whose address is given by length. If length is NULL, then no length is returned.
The format of the program binary written into binary is returned in the variable whose address is given by binaryFormat, and may be
implementation dependent. The binary produced by the GL may subsequently be returned to the GL by calling glProgramBinary(), with
binaryFormat and length set to the values returned by glGetProgramBinary, and passing the returned binary data in the binary parameter.
ERRORS
GL_INVALID_OPERATION is generated if bufSize is less than the size of GL_PROGRAM_BINARY_LENGTH for program.
GL_INVALID_OPERATION is generated if GL_LINK_STATUS for the program object is false.
ASSOCIATED GETS
glGetProgram() with argument GL_PROGRAM_BINARY_LENGTH
SEE ALSO
glGetProgram(), glProgramBinary()
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 GLGETPROGRAMBINARY(3G)