I have a few scripts that i would like to make into GUI's. Are there scripting commands to make GUI's if so where can i get the list of commands and what they do or if anyone has an example of it. Anything will help, thanks (1 Reply)
I am trying to get various portions of strings in my script, but am getting a substitution error. I followed the syntax that was described when I goggled this, but I can't get anything to work.
#! /bin/ksh/
hello="adklafk;afak"
#hello=${hello:3}
hello=${$hello:3}
happy="hey"
echo... (1 Reply)
Is there a way to shorten these commands? because this script asks for a password 3 times
scp -p /usr/local/bin/${script_name} ${servername$iy]}://usr/local/bin/
ssh ${servernames} /usr/local/bin/${script_name}
ssh ${servernames} rm -f /usr/local/bin/${script_name}
Basically, I'm creating a... (3 Replies)
Are there any documents available for checking the execution time taken by ksh commands?
My requirement is to fine tune a set of shell scripts having lot of "echos" and "date"s.
Is there a better replacement for the below code?.
echo "ABC process started on `date`"
some code..
echo... (12 Replies)
Hi,
I am trying to execute a bunch of piped command which are stored in a variable, but only one command executed at a time, and rest of the pipes, commands and their arguments are considered as argument to the very first command.
Can you please help me in this?
bash-2.05$ cat test.sh... (1 Reply)
I am trying to to this
findCDZfile=`ls -at `find /opt/apps/busobj/bobj/bobje/data/ -name CDZ*.tmp``
and it doesn't seem to like me - is there a special escape character I need to use? (2 Replies)
Hi,
I am not able to run below command on linux, it however works on solaris. If anyone knows the reason and a solution for it can you please let me know ?
Linux
-----
$> ksh 'echo hi'
ksh: echo hi: No such file or directory
$> which ksh
/usr/bin/ksh
Solaris
------
$> ksh 'echo... (2 Replies)
I am using SED to edit a file (called file)
the file contains the word "ERROR"
and I want to use SED to:
1. Search for text "ERROR"
If found,
2. Append new line with text "hoi"
I tried:
sed 's/ERROR/ a\hoi' file
sed 's/ERROR/ a\ hoi' file
I get all the time the error
sed:... (7 Replies)
I need to run few commands in a ksh script sequentially.
Some of the commands are jobs submitted to the server and the consecutive commands are dependent on the completion of the jobs submitted to the server.
It works if i separate the commands into different files like this
#!/bin/ksh... (1 Reply)
I create commands within a pipe and finally want them to be executed instead of being displayed on the screen. What is the last stage in this pipe? I found by guessing that "ksh" is working, but is this the best to use here?
It boils down to this:
echo "print Hello World!"| kshWhat is the... (15 Replies)
Discussion started by: Cochise
15 Replies
LEARN ABOUT PHP
mssql_pconnect
MSSQL_PCONNECT(3)MSSQL_PCONNECT(3)mssql_pconnect - Open persistent MS SQL connectionSYNOPSIS
resource mssql_pconnect ([string $servername], [string $username], [string $password], [bool $new_link = false])
DESCRIPTION mssql_pconnect(3) acts very much like mssql_connect(3) with two major differences.
First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, username and
password. If one is found, an identifier for it will be returned instead of opening a new connection.
Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for
future use (mssql_close(3) will not close links established by mssql_pconnect(3)).
This type of links is therefore called 'persistent'.
PARAMETERS
o $servername
- The MS SQL server. It can also include a port number. e.g. hostname:port.
o $username
- The username.
o $password
- The password.
o $new_link
- If a second call is made to mssql_pconnect(3) with the same arguments, no new link will be established, but instead, the link
identifier of the already opened link will be returned. This parameter modifies this behavior and makes mssql_pconnect(3) always
open a new link, even if mssql_pconnect(3) was called before with the same parameters.
RETURN VALUES
Returns a positive MS SQL persistent link identifier on success, or FALSE on error.
EXAMPLES
Example #1
mssql_pconnect(3) using the $new_link parameter
<?php
// Connect to MSSQL and select the database
$link1 = mssql_pconnect('MANGOSQLEXPRESS', 'sa', 'phpfi');
mssql_select_db('php', $link1);
// Create a new link
$link2 = mssql_pconnect('MANGOSQLEXPRESS', 'sa', 'phpfi', true);
mssql_select_db('random', $link2);
?>
PHP Documentation Group MSSQL_PCONNECT(3)