The solution that itkamraj gave is better solution.
Still if you want, Copy your script to a file named say, kbdcheck.sh.
Change permission to 755.
Create a servername list file.
Copy script to all servers' /tmp directory using
All, I need to write an unix shell script which inserts some records into a file located in remote servers.
* Get the input from the user and insert according the first row. It should be in ascending order.
123451,XA,ABA
123452,XB,ABB
123453,XC,ABC
123455,XE,ABE
123456,XF,ABF
123458,XG,ABG... (2 Replies)
Hi,
I need Unix Shell Script Review Check list in the format of word or excel.
Can any one provide the review checklist for unix shell script. Pls. (1 Reply)
Dears,
need help on developing a script to monitor sun server temperature , I'm using the below command to check the servers one by one
/usr/platform/`uname -i`/sbin/prtdiag -v
Servers Models are :
2 x Sun SPARC Enterprise M9000 Server
4 x Sun Fire V490
2 x Sun Blade T6300 Server... (1 Reply)
HI all,
I want to script where all the server names will be in a text file like
server1
server2
server3 . and the script should take servernames from a text file and perform copy of files if the files are not present on those servers.after which it should take next servername till the end of... (0 Replies)
Hi Folks,
I was given a task to append three IP's at the end of a specific (and unique) line within a file on multiple servers.
I was not able to do that with the help of a script. All I could was:
for i in server1 server2 server3 server4
do
ssh $i
done
I know 'sed' could be used to... (5 Replies)
Hi, I'm new to C Shell programming. I'm trying to check if a sym link exists on remote server if not send email. I'm not having much luck. Can anyone help?
Here is what I have written but it doesn't work. It tells me that my variable was not defined. Here is part of the script, the second... (0 Replies)
Hi
I'd like to check that a bunch of firewall rules have been applied and, therefore, want to write a script that basically does the following:
telnet serverA port1
telnet serverA port2
telnet serverB port1
telnet serverB port2
I would just compile the list in excel and run it as a... (2 Replies)
Hi Experts,
I am not good in writing script. Just stared.I am looking for shell script to check following parameters.
1) Number of files on remote Linux SUSE server.- Any directory and sub directory.
2) I should define number of files in script. Files should be variable.
3) Age of... (2 Replies)
I'm required to write a simple shell script that when it runs it writes the output which is a simple barcode to a tmp flat file which I can do the bit I'm struggling with...
The next time it runs I need to check the tmp output file to see if that barcode is in the output file and if it is send... (5 Replies)
Discussion started by: worky
5 Replies
LEARN ABOUT PHP
sybase_connect
SYBASE_CONNECT(3)SYBASE_CONNECT(3)sybase_connect - Opens a Sybase server connectionSYNOPSIS
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)