04-25-2009
You can use expect command. So when there is a conection it scapes whith the character... And log the results....
Regards..
Exequiel
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I'm using a bourne shell to kick off a 3rd Pty app. This app uses Orbix. When I exit from the telnet session which started the app or hit CTRL-C at the command line, the orbix process dies, yet all other process remain.
I've tried starting the app as a background process, but it still... (1 Reply)
Discussion started by: edgarm
1 Replies
2. Programming
In one of my programs another process is called using the system command e.g.
lv_error = system("myproc");
where lv_error is declared as an int.
myproc would be returning 0 for success and 1 for failure. e.g.
if (success)
{
return(0);
}else{
return(1);
}
When the return code... (3 Replies)
Discussion started by: mbb
3 Replies
3. UNIX for Dummies Questions & Answers
ssh user@host -q -n 'grep `hostname` /etc/hosts; telnet 10.100.23.45 1234;'
When i run this command remotely it is hanging and not giving me the prompt, Can anyone tell me how can I exit a telnet command remotely please.
Thanks. (10 Replies)
Discussion started by: venu_nbk
10 Replies
4. Shell Programming and Scripting
How can i test for a file if it is exist in the current directory or not using test?
i try this:
if
then echo "File not exist"
else
do somthing.......
fi
but this is not working (2 Replies)
Discussion started by: mingming88
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Hope all your are doing well. Need a suggestion from you.
I am writing an automated shell script that will effectively check the telnet connectivity with different backends from present deployment server.
Ideally, this script reads each backend hostname from a configuration file and fires... (4 Replies)
Discussion started by: bhaskar_m
4 Replies
6. AIX
From a Windows command prompt, when I want to test whether an IP and port is open to a connection I can use telnet:
telnet 1.2.3.4 5050
..tests whether I can connect to port 50 on host 1.2.3.4.
What is the correct context to do a similar test from an AIX console?
Thanks! (1 Reply)
Discussion started by: landog
1 Replies
7. Shell Programming and Scripting
Hello;
I regularly run monitoring scripts over ssh to monitoring scripts
But whenever a server is hung or in maintenance mode, my script hangs..
Are there anyways to trap exit status and be on my way ??
Looked at the ssh manpage and all I can see is a "-q" option for quiet mode ..
Thank... (2 Replies)
Discussion started by: delphys
2 Replies
8. Shell Programming and Scripting
see below for a housekeeping script which constructs an ssh cmd using some server/path/sudo info found in $HRINST.
the script should hop to each server and if it finds a file to cleanup, moves it to the archive dir
if there is nothing to move, it should report so and email the output
... (3 Replies)
Discussion started by: jack.bauer
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I need to test telnet connections using port number for few hosts.
Could you please help me?
Thanks !! (1 Reply)
Discussion started by: skhichi
1 Replies
10. Shell Programming and Scripting
Hi there,
I'm very used to use set -e to break my scripts if any command exits with a non-zero status.
As a policy, I'm willingly expecting echo hello | grep a to break the script.
The commands test 1 -eq $1 && echo hello exits with a non-zero status if $1 is not 1. BUT... It doesn't break... (2 Replies)
Discussion started by: chebarbudo
2 Replies
LEARN ABOUT CENTOS
glgetprograminfolog
GLGETPROGRAMINFOLOG(3G) OpenGL Manual GLGETPROGRAMINFOLOG(3G)
NAME
glGetProgramInfoLog - Returns the information log for a program object
C SPECIFICATION
void glGetProgramInfoLog(GLuint program, GLsizei maxLength, GLsizei *length, GLchar *infoLog);
PARAMETERS
program
Specifies the program object whose information log is to be queried.
maxLength
Specifies the size of the character buffer for storing the returned information log.
length
Returns the length of the string returned in infoLog (excluding the null terminator).
infoLog
Specifies an array of characters that is used to return the information log.
DESCRIPTION
glGetProgramInfoLog returns the information log for the specified program object. The information log for a program object is modified when
the program object is linked or validated. The string that is returned will be null terminated.
glGetProgramInfoLog returns in infoLog as much of the information log as it can, up to a maximum of maxLength characters. The number of
characters actually returned, excluding the null termination character, is specified by length. If the length of the returned string is not
required, a value of NULL can be passed in the length argument. The size of the buffer required to store the returned information log can
be obtained by calling glGetProgram() with the value GL_INFO_LOG_LENGTH.
The information log for a program object is either an empty string, or a string containing information about the last link operation, or a
string containing information about the last validation operation. It may contain diagnostic messages, warning messages, and other
information. When a program object is created, its information log will be a string of length 0.
NOTES
The information log for a program object is the OpenGL implementer's primary mechanism for conveying information about linking and
validating. Therefore, the information log can be helpful to application developers during the development process, even when these
operations are successful. Application developers should not expect different OpenGL implementations to produce identical information logs.
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_VALUE is generated if maxLength is less than 0.
ASSOCIATED GETS
glGetProgram() with argument GL_INFO_LOG_LENGTH
glIsProgram()
SEE ALSO
glCompileShader(), glGetShaderInfoLog(), glLinkProgram(), glValidateProgram()
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/.
AUTHORS
opengl.org
opengl.org 06/10/2014 GLGETPROGRAMINFOLOG(3G)