9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am writing a script, and I need to incorporate some logic where I can find out the unix username of the person who is executing the script.
The issue is , a particular user could have "sesu" ed into a group id. for eg. root, and then executed the script. In that case, instead of root,... (5 Replies)
Discussion started by: neil.k
5 Replies
2. UNIX for Dummies Questions & Answers
Hi I am new to unix and I am trying to figure out how to write a shell script with a login name and password. I want to do something along the lines of if both are correct it echoes "you are logged in" and if the password is wrong it echoes "wrong password" and same with the login name. I've tried... (7 Replies)
Discussion started by: thedemonhunter
7 Replies
3. UNIX for Advanced & Expert Users
Hi,
I have been given the task of installing Informix 10.00 FC5 on a Sunfire V100 running Solaris 10. The plan is to restore the last Informix backup from tape and test it on the V100 which is in our test/devel environment.
I have never worked with Informix and Solaris admin is still pretty... (0 Replies)
Discussion started by: jamba1
0 Replies
4. Shell Programming and Scripting
Hi,
I am facing a issue in one of my script, Please help me on the same. Below I have the example.
Example:
I have two functions(host(),user()) in a single file named test1.ksh
File Name: test1.ksh
host () {
HOST=`hostname`
echo... (1 Reply)
Discussion started by: samvino
1 Replies
5. UNIX and Linux Applications
I am running a Informix-4GL program to insert/update/delete on a particular table (say xxx). Now I want to create a logfile in unix which will store the affected data(say xxx.*) along with user information (say uname,IP address etc.)
what command I should use from Informix-4GL ?
I have tried the... (0 Replies)
Discussion started by: subhamukh
0 Replies
6. Shell Programming and Scripting
Hi All
Please let me know if there is command to check the version of the informix database installed..?
Thanks in advance.
Suresh (4 Replies)
Discussion started by: sureshg_sampat
4 Replies
7. Programming
How to get the user name of the Operating system from a c program.
eg:-
-rw-r----- 1 gkuser srth1 292 Jul 27 19:28 u1.txt
i need to get gkuser as the result? (3 Replies)
Discussion started by: Rajeshsu
3 Replies
8. Programming
Hi all,
I tried writing an .ec program connecting to informix database
from solaris platform Sun 5.7
informix version that i had to used when i compiled the program was 9.21.UC3
the binary when i ported solaris box with informix version 9.40.UC5 i am unable to run that
i am encountering... (0 Replies)
Discussion started by: matrixmadhan
0 Replies
9. UNIX for Dummies Questions & Answers
Can anyone please help me?
I need to find out if a Unix server running Solaris 2.4 and an Informix V5 Database is capable of CTI via a CSTA Link to a telephone system for screen popping, and what APIs for CTI are supported?
Any help or pointers in the right direction would be much appreciated.... (2 Replies)
Discussion started by: Dave34
2 Replies
IFX_CONNECT(3) 1 IFX_CONNECT(3)
ifx_connect - Open Informix server connection
SYNOPSIS
resource ifx_connect ([string $database], [string $userid], [string $password])
DESCRIPTION
ifx_connect(3) establishes a connection to an Informix server.
In case a second call is made to ifx_connect(3) with the same arguments, no new link will be established, but instead, the link identifier
of the already opened link will be returned.
The link to the server will be closed as soon as the execution of the script ends, unless it's closed earlier by explicitly calling
ifx_close(3).
PARAMETERS
All of the arguments are optional, and if they're missing, defaults are taken from values supplied in php.ini (ifx.default_host for the
host (Informix libraries will use INFORMIXSERVER environment value if not defined), ifx.default_user for user, ifx.default_password for the
password (none if not defined).
o $database
- The database name, as a string.
o $userid
- The username, as a string.
o $password
- The password, as a string.
RETURN VALUES
Returns a connection identifier on success, or FALSE on error.
EXAMPLES
Example #1
Connect to a Informix database
<?php
$conn_id = ifx_connect ("mydb@ol_srv1", "imyself", "mypassword");
?>
SEE ALSO
ifx_pconnect(3), ifx_close(3).
PHP Documentation Group IFX_CONNECT(3)