8 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies
2. Shell Programming and Scripting
I want the tomcat to restart when java goes 100% cpu utilize and remain on this , Get pid kill and start tomcat .
top | grep java
We can get pid and cpu utilize , But how can we do on run time.
Please use code tags as required by forum rules! (1 Reply)
Discussion started by: kaushik02018
1 Replies
3. Programming
Hey, for the purpose of a research project I need to know if a specific type of parallel processing is being utilized by any user-run programs. Is there a way to detect whether a program either returns a value to another program at the end of execution, or just utilizes any form of parallel... (4 Replies)
Discussion started by: azar.zorn
4 Replies
4. UNIX for Advanced & Expert Users
I'm becoming a dying breed where I work. More and more sys admins are advocating automatically restarting failed services such as tomcat, jboss, etc. I've always been against doing this except with buggy apps that can't be fixed or avoided.
My main argument is that I feel it's a trick used by... (9 Replies)
Discussion started by: mglenney
9 Replies
5. Shell Programming and Scripting
I have a service that are not 100% stable and stops from time to time.
So I have a script that do restart the service if it does not run.
This script works win on Ubuntu 9.04 but will not start the service in Ubuntu 10.10
If I run the part that do starts the service from CLI, it starts... (2 Replies)
Discussion started by: Jotne
2 Replies
6. HP-UX
Hi All,
May i please know if it is possible to write a script to check the log messages and automatically restart a service if it is failed or it is stopped.
Appreciate your suggestions.
Thanks in advance.
regards,
Eajaz (2 Replies)
Discussion started by: ajazshariff
2 Replies
7. Shell Programming and Scripting
hellou, can anybody help me with nat detection in real time ? i prefer some detection script because i try some nat detection program's for example p0f or i'm using tcpdump, but i would get contain of specific packet. Some ideas? (1 Reply)
Discussion started by: TheTechnic
1 Replies
8. IP Networking
How to get information that where is my modem configured in /dev.
I have two modems configured in my device .. one is USB and other is PCI modem.. USB is detected as /dev/USB0. but how to see about PCI modem? (0 Replies)
Discussion started by: s123.radha
0 Replies
SYBASE_CONNECT(3) SYBASE_CONNECT(3)
sybase_connect - Opens a Sybase server connection
SYNOPSIS
resource sybase_connect ([string $servername], [string $username], [string $password], [string $charset], [string $appname], [bool
$new = false])
DESCRIPTION
sybase_connect(3) establishes a connection to a Sybase server.
In case a second call is made to sybase_connect(3) with the same arguments, no new link will be established, but instead, the link identi-
fier 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
sybase_close(3).
PARAMETERS
o $servername
- The servername argument has to be a valid servername that is defined in the 'interfaces' file.
o $username
- Sybase user name
o $password
- Password associated with $username.
o $charset
- Specifies the charset for the connection
o $appname
- Specifies an appname for the Sybase connection. This allow you to make separate connections in the same script to the same data-
base. This may come handy when you have started a transaction in your current connection, and you need to be able to do a separate
query which cannot be performed inside this transaction.
o $new
- Whether to open a new connection or use the existing one.
RETURN VALUES
Returns a positive Sybase link identifier on success, or FALSE on failure.
CHANGELOG
+--------+------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+------------------------------------+
| 5.3.0 | |
| | |
| | The $new parameter was added. |
| | |
| 4.2.0 | |
| | |
| | The $appname parameter was added. |
| | |
| 4.0.2 | |
| | |
| | The $charset parameter was added. |
| | |
+--------+------------------------------------+
EXAMPLES
Example #1
sybase_connect(3) example
<?php
$link = sybase_connect('SYBASE', '', '')
or die("Could not connect !");
echo "Connected successfully";
sybase_close($link);
?>
SEE ALSO
sybase_pconnect(3), sybase_close(3).
PHP Documentation Group SYBASE_CONNECT(3)