01-19-2010
C system() how to send the output to an array??
Hi, im in need if wisdom here guys...
How could I store the output of commands like ping integrally directly into a array??? I'll be using system() to run the commands but how can I send the output to an array??? cuz I need to store it so that I can later copy the array's content to a buffer that will then be sent via sockets.
10 More Discussions You Might Find Interesting
1. Programming
Hi friends
my C code is
int main()
{
system("cp <source> <destination>");
}
my question is
how to set variables for <source> and <destination>
how can we pass it to system() call.
can you suggest me
thankyou
kingskar (6 Replies)
Discussion started by: kingskar
6 Replies
2. UNIX for Advanced & Expert Users
How to send a message to another unix terminal along with the date specified (4 Replies)
Discussion started by: aajan
4 Replies
3. UNIX for Dummies Questions & Answers
I am analyzing snoop output and want to send "Hello world" to a remote system. I want to see if the message received is encrypted or not.
can I use ping to send a text message?
like ping "helloworld" <IP Addr>
Please help.
Thank you (5 Replies)
Discussion started by: rakeshou
5 Replies
4. Solaris
Hi,
how to send the output of a command directly to a file. For eg: am issuing metastat -a. How to send the output of this command to a file as well as mail. (3 Replies)
Discussion started by: rogerben
3 Replies
5. Shell Programming and Scripting
So, here's a scenario that requires the same logic as what I'm working on: Suppose that you have a directory containing files named after users. For awk's purposes, the filename is a single field-- something parse-friendly, like john_smith. Now, let's say that I'd like to populate an array in... (2 Replies)
Discussion started by: treesloth
2 Replies
6. Shell Programming and Scripting
hey guys in only new to scripting as such, but i have a problem.
i want to take the output of a search i do in the command line to then be in a variable but only a certain part of the output.
this this what im doing:
-bash-2.05b$ ldapsearch -x '(dn:=dc)' dc|grep dc=
# base... (1 Reply)
Discussion started by: jmorey
1 Replies
7. Filesystems, Disks and Memory
Hi Guys,
I've been having some arguments with my colleagues about one thing. Always my thought was that as as far as disk performance is concern by looking at the output of the iostat command (AIX) you would be able to identify if you have a hot disk and then by moving some files out that disk... (3 Replies)
Discussion started by: arizah
3 Replies
8. UNIX for Dummies Questions & Answers
I am trying to find an example for reading an array instead of reading a file and send out an email in ksh. Can you please help is that possible?
Algorithm
#!/bin/ksh
i=0
set -A ARR
if
then
let i=$
ARR="A does n't match with B"
fi
if
then
let i=$
ARR="P does n't match with Q"... (11 Replies)
Discussion started by: Ariean
11 Replies
9. UNIX for Dummies Questions & Answers
Greetings,
basically what I want to do is take the standard error from a cron file and store it on a file in a remote host (from Solaris to Linux). I want to create a cron file to do this everyday or put it on a script that will send it everyday to the other system (that doesnt matter). Any ideas... (2 Replies)
Discussion started by: picolin
2 Replies
10. Shell Programming and Scripting
#! /bin/ksh
#] && . ./.profile 2>/dev/null
if test -f '.profile'; then . ./.profile; fi;
#. .profile
LOG_DIR=/app/rpx/jobs/scripts/just/logs
sendEmail()
{
pzCType="$1"; pzTitle="$2"; pzMsg="$3"; pzFrom="$4"; pzTo="$5"; pzFiles="$6"; pzReplyTo="$7"
(
... (21 Replies)
Discussion started by: ankit.mca.aaidu
21 Replies
LEARN ABOUT CENTOS
glbindbufferbase
GLBINDBUFFERBASE(3G) OpenGL Manual GLBINDBUFFERBASE(3G)
NAME
glBindBufferBase - bind a buffer object to an indexed buffer target
C SPECIFICATION
void glBindBufferBase(GLenum target, GLuint index, GLuint buffer);
PARAMETERS
target
Specify the target of the bind operation. target must be one of GL_ATOMIC_COUNTER_BUFFER, GL_TRANSFORM_FEEDBACK_BUFFER,
GL_UNIFORM_BUFFER or GL_SHADER_STORAGE_BUFFER.
index
Specify the index of the binding point within the array specified by target.
buffer
The name of a buffer object to bind to the specified binding point.
DESCRIPTION
glBindBufferBase binds the buffer object buffer to the binding point at index index of the array of targets specified by target. Each
target represents an indexed array of buffer binding points, as well as a single general binding point that can be used by other buffer
manipulation functions such as glBindBuffer() or glMapBuffer(). In addition to binding buffer to the indexed buffer binding target,
glBindBufferBase also binds buffer to the generic buffer binding point specified by target.
NOTES
Calling glBindBufferBase is equivalent to calling glBindBufferRange() with offset zero and size equal to the size of the buffer.
The GL_ATOMIC_COUNTER_BUFER target is available only if the GL version is 4.2 or greater.
The GL_SHADER_STORAGE_BUFFER target is available only if the GL version is 4.3 or greater.
ERRORS
GL_INVALID_ENUM is generated if target is not GL_ATOMIC_COUNTER_BUFFER, GL_TRANSFORM_FEEDBACK_BUFFER, GL_UNIFORM_BUFFER or
GL_SHADER_STORAGE_BUFFER.
GL_INVALID_VALUE is generated if index is greater than or equal to the number of target-specific indexed binding points.
GL_INVALID_VALUE is generated if buffer does not have an associated data store, or if the size of that store is zero.
SEE ALSO
glGenBuffers(), glDeleteBuffers(), glBindBuffer(), glBindBufferRange(), glMapBuffer(), glUnmapBuffer(),
COPYRIGHT
Copyright (C) 2010-2011 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 GLBINDBUFFERBASE(3G)