if you want to automate for non-running process
1. you have to create a file which should contain all processes.
2. than compare all processes file to MYFILE(file) then you will get non-running processes.
i have activated mysql, and apache on my redhat 9 box, i went to mr BASH and wrote a php script, and it wouldn't execute.
any help?????????????????????????????????????
is there something that i need to activate???????
i have RUBY on there too,does it matter or no???
... (2 Replies)
hi all
by using gethostbyname, i can know whether the net is available or not.
it is working fine when i activate or deactivate in neat.
the problem is when i remove cable(netcable) it is not working proparly,
i would like to know it.
am using fedora5, AMD
can u please help me .
thank... (3 Replies)
Hi,
in our business we have a formerly (few years ago) installed computer with an openserver SCO 5.05
there are 3 network cards in it. one on board and two 3Com-cards
Looking with ifconfig (or scoadmin) they seemed to be installed correctly.
IP-Adress, netmask broadcas looks OK.
But no... (3 Replies)
Now i'm up to making a script from which you could activate all Linux services without being an expert. It's gonna be a powerful tool, I'll look forward to make it able to change the port which the service is assigned to. But I need some help, post some script to activate services and I'll fusion... (8 Replies)
hi Guys,
I just wondering if someone has gone through this process before. We are about to migrate all our current LPARS from a Power6 server to a new Power7 server. The only concern we have is that we are runing a few DB2 V8 databases on AIX 5.3 and basically DB2 v8 is been out of support for... (2 Replies)
Hi,
I have written a function which will blink a text "Scanning...". Now in the main script when I am doing the scan in the server I want to call this function so that user will see a blinking text on the screen and at the same time script will proceed will the scan function. Once scan is... (2 Replies)
I need to create a script to list all the databases that are in cluster environment.
The reason is that there are databases which are not in under cluster control and we need to identify those.
The easiest way to identify is:
clrt list (if SUNW.oracle_server:6, SUNW.oracle_listener:5 are not... (0 Replies)
Hi Friends,
I was successfully able to login passwordlessly to server 1.1.1.2 from server 1.1.1.1 by following the below steps. I had already generated the keys using (ssh-keygen -t rsa) once and i am assuming i do not have to do that again.
ssh id@1.1.1.2 mkdir -p .ssh
cat... (8 Replies)
Hi Team,
I am Oracle Databse developer. I am currently working on two databases.
DB1 and DB2.
in DB1 I have a Select query which will return 100 records.
In Db2 I have a Select query which also return 100 records.
In these two tables ( in different Schemas) we have a common column.
... (2 Replies)
Discussion started by: vasuvv
2 Replies
LEARN ABOUT REDHAT
dropdb
DROPDB(1) PostgreSQL Client Applications DROPDB(1)NAME
dropdb - remove a PostgreSQL database
SYNOPSIS
dropdb [ options... ] dbname
DESCRIPTION
dropdb destroys an existing PostgreSQL database. The user who executes this command must be a database superuser or the owner of the data-
base.
dropdb is a shell script wrapper around the SQL command DROP DATABASE [drop_database(7)] via the PostgreSQL interactive terminal psql(1).
Thus, there is nothing special about dropping databases via this or other methods. This means that the psql must be found by the script and
that a database server is running at the targeted host. Also, any default settings and environment variables available to psql and the
libpq front-end library do apply.
OPTIONS
dropdb accepts the following command-line arguments:
dbname Specifies the name of the database to be removed. The database must be one of the existing PostgreSQL databases in this installa-
tion.
-e
--echo Echo the queries that dropdb generates and sends to the server.
-i
--interactive
Issues a verification prompt before doing anything destructive.
-q
--quiet
Do not display a response.
createdb also accepts the following command-line arguments for connection parameters:
-h host
--host host
Specifies the host name of the machine on which the server is running. If host begins with a slash, it is used as the directory for
the Unix domain socket.
-p port
--port port
Specifies the Internet TCP/IP port or local Unix domain socket file extension on which the server is listening for connections.
-U username
--username username
User name to connect as
-W
--password
Force password prompt.
DIAGNOSTICS
DROP DATABASE
The database was successfully removed.
dropdb: Database removal failed.
Something didn't work out.
If there is an error condition, the backend error message will be displayed. See DROP DATABASE [drop_database(7)] and psql(1) for possi-
bilities.
ENVIRONMENT
PGHOST
PGPORT
PGUSER Default connection parameters
EXAMPLES
To destroy the database demo on the default database server:
$ dropdb demo
DROP DATABASE
To destroy the database demo using the server on host eden, port 5000, with verification and a peek at the underlying query:
$ dropdb -p 5000 -h eden -i -e demo
Database "demo" will be permanently deleted.
Are you sure? (y/n) y
DROP DATABASE "demo"
DROP DATABASE
SEE ALSO createdb(1), DROP DATABASE [drop_database(7)]
Application 2002-11-22 DROPDB(1)