03-05-2009
Linux Based Application OID
Hi
I am searching for system OID on an application which is linux based.
Can any one please let me know, where can I find from Command line?
Thanks in advance.
10 More Discussions You Might Find Interesting
1. Programming
I need port Win32 console application, which was developed with MS Visual Studio 6.0 (without MFC using) into Linux. What is the best way to port project? Are there any standard tools or decisions?
Thank you in advance,
Sergey (0 Replies)
Discussion started by: Sergeyy
0 Replies
2. Programming
I am developing a client-server application. All communication is UDP based. I am sending 1000 packets per second. Every packet having size 15 bytes. At receiving end many packets lost. Please tell me if there any solution for this problem or it is actually problem with UDP. (1 Reply)
Discussion started by: mansoorulhaq
1 Replies
3. Programming
Hi everyone,
What is the difference between console-based and Xwindow-based application?
Can I say the application working well in Xwindows can work in console?
Can I say the application working well in console cann't work in Xwindow perhaps.
Eg, ncurses is console-based and Imlib2 is... (4 Replies)
Discussion started by: liuyan03
4 Replies
4. AIX
Hi All,
I am currently facing new problem of migrating C(c language) application from AIX machine to Linux machine. We are using GCC to compile the source code..
But facing with the compilation issues, with lot of GCC C libs differing between AIX box to Linux box...
Pls help me... (3 Replies)
Discussion started by: karthikc
3 Replies
5. Programming
I'm trying to do some cleanup (write open files) when Linux shuts down. I thought the right method would be to trap SIGTERM and do the necessary processing. Here's my sample code:
#include <stdio.h> // for File I/O
#include <signal.h> // for signals
#include <unistd.h> // for sleep()
void... (6 Replies)
Discussion started by: whatisron
6 Replies
6. UNIX for Advanced & Expert Users
I am looking to make the switch from a Windows based network to a Linux (preferably Ubuntu, because I used it the most) based one. Currently the network includes a Windows 2003 server which acts as a domain controller and file server, a network shared printer (Canon 2300N) and 7 clients running... (2 Replies)
Discussion started by: larynx
2 Replies
7. Solaris
I'll preface this by saying I'm just a novice, with just basic knowledge of shell scripting, as well as basic knowledge in SNMP. I working on a script that takes the motd file on a solaris 5.x box and parses the information out into an OID to be passed to the SNMP server. We're using SysEDGE client... (0 Replies)
Discussion started by: jsoper1
0 Replies
8. UNIX and Linux Applications
Hello everyone,
It is good to be here.
I am a newbie to Linux.Can anyone help me in designing a timer application.
The timer has to start.And after certain time interval the program should call a function continuously.It should not be in sleep mode.During the course of that time interval the... (0 Replies)
Discussion started by: Harry443
0 Replies
9. Programming
hi,
so I am familiar with visual studio for windows, I was wondering if there's that kind of IDE for linux that I can use to make an application...
thanks! (2 Replies)
Discussion started by: h0ujun
2 Replies
10. Shell Programming and Scripting
Hello
We are in the process of migrating few of our applications in our linux boxes to new linux box to streamline our applications . In this context , i would like to know how we can calculate a particular application is used .?
This data will then be used to select which applications need... (7 Replies)
Discussion started by: ron5174
7 Replies
LEARN ABOUT PHP
pg_field_type_oid
PG_FIELD_TYPE_OID(3) PG_FIELD_TYPE_OID(3)
pg_field_type_oid - Returns the type ID (OID) for the corresponding field number
SYNOPSIS
int pg_field_type_oid (resource $result, int $field_number)
DESCRIPTION
pg_field_type_oid(3) returns an integer containing the OID of the base type of the given $field_number in the given PostgreSQL $result
resource.
You can get more information about the field type by querying PostgreSQL's pg_type system table using the OID obtained with this function.
The PostgreSQL format_type(3) function will convert a type OID into an SQL standard type name.
Note
If the field uses a PostgreSQL domain (rather than a basic type), it is the OID of the domain's underlying type that is returned,
rather than the OID of the domain itself.
PARAMETERS
o $result
- PostgreSQL query result resource, returned by pg_query(3), pg_query_params(3) or pg_execute(3) (among others).
o $field_number
- Field number, starting from 0.
RETURN VALUES
The OID of the field's base type. FALSE is returned on error.
EXAMPLES
Example #1
Getting information about fields
<?php
$dbconn = pg_connect("dbname=publisher") or die("Could not connect");
// Assume 'title' is a varchar type
$res = pg_query($dbconn, "select title from authors where author = 'Orwell'");
echo "Title field type OID: ", pg_field_type_oid($res, 0);
?>
The above example will output:
Title field type OID: 1043
SEE ALSO
pg_field_type(3), pg_field_prtlen(3), pg_field_name(3).
PHP Documentation Group PG_FIELD_TYPE_OID(3)