how can i get the database name from a config file
its like this:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'userabc_wrdp1');
(there might be spaces in the front of "define")
i want to store the database name to a variable
$dbname=
thanks!
---------- Post updated at 04:33 AM ---------- Previous update was at 04:06 AM ----------
i tried this but it doesnt work
its giving output like ---------- Post updated at 04:46 AM ---------- Previous update was at 04:33 AM ----------
Issue resolved by upgrading from solaris 11 to solaris 11.1
I would like to enable network mapping.
While using instructions from:
https://blogs.oracle.com/VDIpier/entry/solaris_11_changing_the_hostname
To change my hostname I noticed I am missing the enable mapping bool.
What it should... (0 Replies)
Hi!
Thank you ina advance for your Help. Sorry my english, Im from Argentina!
Great Place!!!
So, here si my problem
I have a variable, lets say PARAMETERS that could be set like this:
PARAMETROS="-Usistemas string1 -Astring2 -G -Y -Kcoco -Y string4 -Z"
or
PARAMETROS="string1... (1 Reply)
there is a text file like this
text here
text here
text here
text here
USER=someusername here
text here
text here
text here
how can i extract the someusername from this file which has a path like /home/myfile.txt?
i want to store it in a variable $u (3 Replies)
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Hi!
I have a need to do this in Perl.
script.pl -config file
The script would be doing a wget/LWP on a URL which is defined in the config file.
So when I run the script it should return either one of these conditions -
1) OK with exit status 0.
Should also print "wget URL"
2)... (6 Replies)
Hi,
I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below.
I will be using the config file as mentioned below:
(config.txt)
country:a,b
city:1,2
type:b1... (1 Reply)
Hi ! All
I want to write a script where, it will open a new shell with a
username / pwd and modify a file of same username and exit.
example:
1. UserA
2. UserB- FileB
ScriptA -> su UserB -> Modify FileB -> Exit ScriptA
Can somebody give me a direction , on how to... (2 Replies)
Hello,
I have a file FSGReport.info which reads as
export username=abc
export password= 1333
Now I have another FTP script file FTP.sh in which I need to access the username and password stored in the file FSGReport.info . How can I access this file and get the username and password. Please... (1 Reply)