Hello everyone,
I'm a unix noob. I have a powerbook running mac os x 10.4 and for one of my classes I need to install the latest version of php (5.0.5). I'm following the instructions at http://developer.apple.com/internet/opensource/php.html to install but I've run into a problem.
The... (2 Replies)
Hi Gurus,
I have a requirement.
cat /usdd/Sample/"NDDF Plus DB"/"NDDF Descriptive and Pricing"/"NDDF BASICS 3.0"/"Pricing"/1.txt |
sed 's/*|*/|/g' |
sed 's/^*//'|
sed 's/^*//;
s/*$//' > temp.txt
In unix prompt the above command is reading the file 1.txt and I am... (1 Reply)
I am facing a problem in replacing the file contents by iterating through the list.
My present code:
Code:
#!/bin/bash#
TFILE="/tmp/vinay/testb_1.txt"
while read linedo
aline="$line"
echo $aline
code=`echo $aline|cut -d ',' -f1`
country=`echo $aline|cut -d... (5 Replies)
hi all,
i am writing a ksh script, i am logging into an oracle db via sqlplus and running a select statement but i dont know how i can store the results from the sql so i can iterate over it and do more operations over it. I dont want to write a stored procedure with a cursor since i need to... (2 Replies)
I have written a script to run ddrescue on a list of files.
#!/bin/bash
#
# A script to rescue data recursively using ddrescue.
srcDir=/damaged/hdd/movies/ #the source directory
desDir=/new/hdd/movies/ #the destination directory... (2 Replies)
Hi all,
I have a variable test has the following value assigned.. could you please help on doing cd or ls to the value in the varible ...
$echo $test
/bdm/sdd/compounds/AD4833XT/requests/clin/Watson_20090420/docs/MHRA\ Comments\ \&\ Responses
$cd $test
ksh: cd: bad argument count
$cd... (3 Replies)
I am organizing my music library on a NAS server. I want to print a list of all the directories that are missing the cover art (at least one or more jpeg file). I have successfully created a file with each line containing the path to each occurance of one or more .mp3 files. That path is also... (2 Replies)
#### ~]$ set "hello 'cat dog walk' money elephat"
#### ~]$ echo $* | awk '{print $2}'
'cat
why is the second command above showing only "'cat ?
shouldn't the output be:
'cat dog walk'
how can i fix this so it gives me the chosen column in its entirety? (11 Replies)
Hi everyone,
I'm trying to write my first ever shell script, the OS is Raspbian. The code I have written must be executed whenever a certain database has been modified. The database resides on a Windows server to which I have a mount point, and I have no control over the Windows server at all so... (2 Replies)
I am using the below bash loop:
or f in /media/cmccabe/My Book Western Digital/10_29and30_2015/*.bam ; do
bname=`basename $f`
pref=${bname%%.bam}
samtools view -H $f | sed '/^@PG/d' | samtools reheader - $f > /home/cmccabe/Desktop/NGS/${pref}_newheader.bam
done
is the... (1 Reply)
Discussion started by: cmccabe
1 Replies
LEARN ABOUT PHP
mysql_get_client_info
MYSQL_GET_CLIENT_INFO(3) 1 MYSQL_GET_CLIENT_INFO(3)mysql_get_client_info - Get MySQL client infoSYNOPSIS
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should
be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:
omysqli_get_client_info(3)
o PDO::getAttribute
string mysql_get_client_info (void )
DESCRIPTION mysql_get_client_info(3) returns a string that represents the client library version.
The MySQL client version.
Example #1
mysql_get_client_info(3) example
<?php
printf("MySQL client info: %s
", mysql_get_client_info());
?>
The above example will output something similar to:
MySQL client info: 3.23.39
mysql_get_host_info(3), mysql_get_proto_info(3), mysql_get_server_info(3).
PHP Documentation Group MYSQL_GET_CLIENT_INFO(3)