Well i am not 100% clear about what you want to do, but i think you want to read the "New.txt" file and then start all the jobs inside that file and restart the server (not sure which servers, may be mentioned in file??)
Pseudo code:
Well not sure if this is what you are looking .. but looks like you want to run same script in parallel with different inputs
I have the below code in a file called test.ksh and it is scheduled using cron forevery 5 min. when i see the cron out file for every 5 min it showing the no of process running are 2. same thing when i implement in another script which contains other code along with the below code , it showing as... (1 Reply)
My company has about 40 databases with each database in a different logical partition. Presently the SysAdmin person says it is necessary to create a user profile (login and password for each instance of databases on each LPAR.
1. Is it necessary that the user must be created in each LPAR?
2.... (1 Reply)
Scenario:
I have two PCs (named as A & B) which would send some traps to my third PC (named as C).
In PC C, I have to write a shell script such that it should accept the datas from both the PC-A & B parallely.
So my question is, is it possible to have two different child threads/tasks... (2 Replies)
Hello,
My goal is to run the same Shell script in a parallel mode. This script will get triggered from different machines and different application teams by some job scheduling tool.
They may trigger the process at the same time. so I want to have them in QUEUE ..and release them for execution on... (3 Replies)
Hello
I am trying to run a python program using shell script, which takes a single argument from a file.
This file has one entry per line :
1aaa
2bbb
3ccc
4ddd
5eee
...
...
...
My shell script runs the program, only for the last entry :
#!/bin/sh
IFS=$'\n'
for line in $(cat... (2 Replies)
Hello Everyone,
How do we run vi/vim encrypted shell script without decryption on multiple servers. It is a simple bash script and vim -nx <filename> has been used to encrypt with desired password. Now I have few errors, the syntax is absolutely fine as I have run that script multiple times on... (0 Replies)
Hi Experts,
I have a list of Dbs.In that DBs i need to execute some sql scripts.
each sql script is unique and it should run on particular DB only.
For example. i have DBs like MDC20V,NDC20V,ODC20V and sql scripts like MD.sql,ND.sql,OD.sql.so MD.sql should run only in MDC20V and ND.sql should... (1 Reply)
Hi,
I need to write a Shell Script wherein i will connect to a DB2 Database and run multiple DB procedures. I know how to do in a way where procedures will be called one after the other, like when first procedure finishes, second will be executed.
But what i want is to run them at the same time... (11 Replies)
Hello,
I'm trying to create a mechanism wherein a set of Production servers will email me the results of system checks like Uptime, NFS Mounts and a Process after every scheduled reboot.
For this, I figured I'd use the @reboot parameter that crond comes with.
I have added the below onliner... (3 Replies)
Discussion started by: pocodot
3 Replies
LEARN ABOUT DEBIAN
pgpool
PGPOOL(8) System Manager's Manual PGPOOL(8)NAME
pgpool - PostgreSQL connection pool daemon
SYNOPSIS
pgpool [ -c] [ -f config_file ] [ -F pcp_config_file ] [ -a hba_file ] [ -n ] [ -d ]
pgpool [ -f config_file ] [ -F pcp_config_file ] [ -a hba_file ] [ -m {s[mart]|f[ast]|i[mmediate]} ] stop
pgpool [ -f config_file ] [ -F pcp_config_file ] [ -a hba_file ] reload
DESCRIPTION
pgpool is a connection pool server for PostgreSQL. pgpool runs between PostgreSQL's client and server. Any PostgreSQL client can connect
to pgpool as if it's a real PostgreSQL server. pgpool caches the connection to the PostgreSQL server to reduce the overhead involved in
establishing the connection to it.
pgpool can also be used with two PostgreSQL servers for fail over purposes. If the first server goes down, pgpool will automatically
switch to the secondary server.
pgpool is typically started and stopped via system initialization scripts.
INVOCATION
pgpool [ options... ]
Starts as a daemon in the background (unless -n is given).
pgpool [ options... ] stop
Shutdown.
pgpool [ options... ] reload
Reloads the configuration.
OPTIONS -a path
--hba-file path Sets the path to the pool_hba.conf configuration file (default: /etc/pgpool2/pgpool_hba.conf).
-c
--clear-cache Clears the query cache.
-d
--debug Print lots of debug messages.
-f path
--config-file path Sets the path to the pgpool.conf configuration file (default: /etc/pgpool2/pgpool.conf).
-F path
--pcp-config-file path Sets the path to the pcp.conf configuration file (default: /etc/pgpool2/pcp.conf).
-h
--help Print a help message and exit.
-m mode
--mode mode Shutdown mode: smart, fast, or immediate.
-n
--no-daemon Foreground mode. Error messages go to stdout or stderr, which could be piped out to log processors such as logger(1) or
rotatelogs(8). To daemonize, explicitly invoke pgpool in background.
-v
--version Print version and exit.
FILES
/etc/pgpool2/pgpool.conf
Default configuration file
/etc/pgpool2/pool_hba.conf
Host Based Access configuration file
/etc/pgpool2/pcp.conf
PCP commands configuration file
SEE ALSO logger(1), postmaster(1), rotatelogs(8)
Additional information can be found in the pgpool README file.
12 Oct 2009 PGPOOL(8)