Start/Stop Script


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Start/Stop Script
Prev   Next
# 1  
Old 12-16-2003
Question Start/Stop Script

I'm a newbie to the Unix world Help!

I have to maintain a host of Sybase database servers sitting on Unix Sun Solaris 8...I've been tasked with finding/creating a way to auto start/stop Unix via unix commands, specifically when the Unix servers need to be restarted we want Sybase to start automatically...any pointers,tips or direction would be helpful!
Thanks Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to stop and start server

Hi, I need to create a shell script for automated server patching, with the following scenario: I have two Linux servers Primary and secondary. Server patching should start on Primary 1st and then secondary. 1st check both servers are up and running. Then stop primary and patching will... (1 Reply)
Discussion started by: rcroyal88
1 Replies

2. Shell Programming and Scripting

Shell Script for Websphere MQ Queue Manager start/stop

Hello All, I am completely new to shell scripting. I had to write a script that starts and stop the queue manager in Websphere MQ. We are on Linux 64-bit patform. The script should stop the queue manager and all the processes related to websphere MQ. It should be a clean stop. Once the queue... (3 Replies)
Discussion started by: pady1224
3 Replies

3. Solaris

Stop/start script problem on Solaris-10

I have Big brother script, which start/stop Big Brother processes. Something got change on server and now I am not able to start/stop it. There is no change in script, as I compared it from other server. This service is being managed by bb user (group is also bb). root@tsazdq04:/#... (6 Replies)
Discussion started by: solaris_1977
6 Replies

4. UNIX for Dummies Questions & Answers

factor [start[stop]

Another question for you guys! This is so fun. So I am playing around with the factor operation. I read in "man factor" that you can actually print a list of primes in between a range, using the syntax factor ] However, every time I enter two values, it just returns the factored value.... (1 Reply)
Discussion started by: statichazard
1 Replies

5. Shell Programming and Scripting

Help with stop/start Shell Script.

Hi All, I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task. 1. User will input the option which server they wish to stop. 2. Will clear cache files from specific location. 3. ... (1 Reply)
Discussion started by: venga
1 Replies

6. UNIX for Dummies Questions & Answers

Stop/Start vs. Restart

Is there any functional difference between: issuing separate stop/start commands like this; super (handler) (instance) stop super (handler) (instance) start versus issuing a single recycle command like this; super (handler) (instance) restart (3 Replies)
Discussion started by: Newbix
3 Replies

7. UNIX for Dummies Questions & Answers

Need help making a start/stop script...

i have two separate scripts that work nicely to curl and generate two files.. one html and one txt so a total of four. When the script starts up i want it to: call and run shellscripta call and run shellscriptb sleep for about 40 seconds again run shellscripta again run shellscriptb check... (4 Replies)
Discussion started by: phpfreak
4 Replies

8. Shell Programming and Scripting

Servers Stop and Start

Hi, Every time i want to stop and start servers using PuTTY,i have to execute 6 to 10 commands every time ,i need shell script(program) for execute those commands in single command.Is it possible plz suggest me. (3 Replies)
Discussion started by: RG18173
3 Replies

9. AIX

Start Stop Apache

I am in the process of reorging my Lawson db. I need to turn off the RMI server...not a problem. However my instructions also state that I must also shutdown my Servlet Container....I believe it is Apache. I have looked in /usr/apache/bin/apachectl What is the command for stopping and... (2 Replies)
Discussion started by: MILLERJ62
2 Replies
Login or Register to Ask a Question
MYSQLND_MS_GET_LAST_USED_CONNECTION(3)					 1				    MYSQLND_MS_GET_LAST_USED_CONNECTION(3)

mysqlnd_ms_get_last_used_connection - Returns an array which describes the last used connection

SYNOPSIS
array mysqlnd_ms_get_last_used_connection (mixed $connection) DESCRIPTION
Returns an array which describes the last used connection from the plugins connection pool currently pointed to by the user connection handle. If using the plugin, a user connection handle represents a pool of database connections. It is not possible to tell from the user connection handles properties to which database server from the pool the user connection handle points. The function can be used to debug or monitor PECL mysqlnd_ms. PARAMETERS
o $connection - A MySQL connection handle obtained from any of the connect functions of the mysqli, mysql or PDO_MYSQL extensions. RETURN VALUES
FALSE on error. Otherwise, an array which describes the connection used to execute the last statement on. Array which describes the connection. +---------------+--------------------------------------+---+ | Property | | | | | | | | | Description | | | | | | | | Version | | | | | | +---------------+--------------------------------------+---+ | | | | | scheme | | | | | | | | | Connection scheme. Either | | | | tcp://host:port or | | | | unix://host:socket. If you want to | | | | distinguish connections from each | | | | other use a combination of scheme | | | | and thread_id as a unique key. Nei- | | | | ther scheme nor thread_id alone are | | | | sufficient to distinguish two con- | | | | nections from each other. Two | | | | servers may assign the same | | | | thread_id to two different connec- | | | | tions. Thus, connections in the pool | | | | may have the same thread_id. Also, | | | | do not rely on uniqueness of scheme | | | | in a pool. Your QA engineers may use | | | | the same MySQL server instance for | | | | two distinct logical roles and add | | | | it multiple times to the pool. This | | | | hack is used, for example, in the | | | | test suite. | | | | | | | | Since 1.1.0. | | | | | | | | | | | host | | | | | | | | | Database server host used with the | | | | connection. The host is only set | | | | with TCP/IP connections. It is empty | | | | with Unix domain or Windows named | | | | pipe connections, | | | | | | | | Since 1.1.0. | | | | | | | | | | | host_info | | | | | | | | | A character string representing the | | | | server hostname and the connection | | | | type. | | | | | | | | Since 1.1.2. | | | | | | | | | | | port | | | | | | | | | Database server port used with the | | | | connection. | | | | | | | | Since 1.1.0. | | | | | | | | | | |socket_or_pipe | | | | | | | | | Unix domain socket or Windows named | | | | pipe used with the connection. The | | | | value is empty for TCP/IP connec- | | | | tions. | | | | | | | | Since 1.1.2. | | | | | | | | | | | thread_id | | | | | | | | | Connection thread id. | | | | | | | | Since 1.1.0. | | | | | | | | | | | last_message | | | | | | | | | Info message obtained from the | | | | MySQL C API function mysql_info(). | | | | Please, see mysqli_info(3) for a | | | | description. | | | | | | | | Since 1.1.0. | | | | | | | | | | | errno | | | | | | | | | Error code. | | | | | | | | Since 1.1.0. | | | | | | | | | | | error | | | | | | | | | Error message. | | | | | | | | Since 1.1.0. | | | | | | | | | | | sqlstate | | | | | | | | | Error SQLstate code. | | | | | | | | Since 1.1.0. | | | | | | +---------------+--------------------------------------+---+ NOTES
Note mysqlnd_ms_get_last_used_connection(3) requires PHP >= 5.4.0 and PECL mysqlnd_ms >> 1.1.0. Internally, it is using a mysqlnd library C call not available with PHP 5.3. EXAMPLES
The example assumes that myapp refers to a plugin configuration file section and represents a connection pool. Example #1 mysqlnd_ms_get_last_used_connection(3) example <?php $link = new mysqli("myapp", "user", "password", "database"); $res = $link->query("SELECT 1 FROM DUAL"); var_dump(mysqlnd_ms_get_last_used_connection($link)); ?> The above example will output: array(10) { ["scheme"]=> string(22) "unix:///tmp/mysql.sock" ["host_info"]=> string(25) "Localhost via UNIX socket" ["host"]=> string(0) "" ["port"]=> int(3306) ["socket_or_pipe"]=> string(15) "/tmp/mysql.sock" ["thread_id"]=> int(46253) ["last_message"]=> string(0) "" ["errno"]=> int(0) ["error"]=> string(0) "" ["sqlstate"]=> string(5) "00000" } PHP Documentation Group MYSQLND_MS_GET_LAST_USED_CONNECTION(3)