04-21-2009
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please can someone help me. I need to set up a cron job to measure CPU usage, Disk I/O and memory usage over a period of 1 minute along with the number of users logged into the system. I also need to send it to another user besides myself every hour. Please can someone help me! Thanks. (4 Replies)
Discussion started by: gerwhelan
4 Replies
2. HP-UX
Dear All,
I am facing an issue related to cronjob and explained below is the case study:
1. I have a java class named "DmCheckRenditionQueue.java" and placed under "/cpc/documentum/product/5.2.5/tomcat/webapps/rendition"
2. When I am using the command
"/usr/openv/java/jre/bin/java -cp... (1 Reply)
Discussion started by: parindam
1 Replies
3. Shell Programming and Scripting
Hi all,
I have written the following script which will try pinging to almost 24 nodes and when the connectivity is down it sends me an alert saying the node is down. It also gets me a trace route information and a contact information.
When i run this script manually it actually works. But... (3 Replies)
Discussion started by: venkidhadha
3 Replies
4. Shell Programming and Scripting
Hi,
I am able to run a.sh script manually but they are not getting invoked from the crontab
here is cronjob entry
15 03 * * * /Feed/bin/a.sh >/Feed/logs/log.txt
logs.txt is empty
Please Advice (7 Replies)
Discussion started by: mad_man12
7 Replies
5. Shell Programming and Scripting
Hi All,
I want to change the start-up sequence of services on SLES10/11.
I have my own start-up scripts for some services and I want them to start in a particular order(not in alphabetical order)
Can anyone help me on this issue? (4 Replies)
Discussion started by: senrooy
4 Replies
6. Shell Programming and Scripting
Hi,
Can anyone tell me what the following 2 lines are doing
base=${0##*/}
link=${base#*}
I found this in a start up service script and I think it is giving the service link names which in turn will change the start up sequence of services. (3 Replies)
Discussion started by: senrooy
3 Replies
7. UNIX for Advanced & Expert Users
Hi,
I'm the administrator of a server with SLES10 and when I type "ls -l" I'm getting a machine name where I should be getting the username, for example:
server:~# ls -l
drwxrwx---+ 3 user-1152$ group1 4096 2009-11-25 12:56 folder
drwxrwx---+ 3 user-1113$ group2 4096 2010-03-10 15:34... (4 Replies)
Discussion started by: rodrigoroma
4 Replies
8. UNIX for Dummies Questions & Answers
hi everyone I'm newbie in this forum hope I can get some help here :)
I have a command in crontab that executed every 1 minute
sometime this command need more than 1 minute to finish
the problem is, the crontab execute this command although it's not finish processing yet and causing the system... (7 Replies)
Discussion started by: 2j4h
7 Replies
9. Shell Programming and Scripting
Dear expert,
I have script named as test.sh in HP-UX
i am using like 00 00 */15 * * : but its cronjob giving error
i want to schedule my script for each 15 days interval exactly.
for example:15 jan,30 jan,15 feb, 2 march, 17 april...etc.
quick response must be highly appreciated.
... (8 Replies)
Discussion started by: Jewel
8 Replies
10. UNIX for Beginners Questions & Answers
How to set cronjob for 48 hours.
I can set for 2 days as shown below.
* * */2 * *
It is creating confusion for 30 days & 31 days per month. (3 Replies)
Discussion started by: Nishit
3 Replies
LEARN ABOUT DEBIAN
postgresql-common
PG_WRAPPER(1) Debian PostgreSQL infrastructure PG_WRAPPER(1)
NAME
pg_wrapper - wrapper for PostgreSQL client commands
SYNOPSIS
client-program [--cluster version/cluster] [...]
(client-program: psql, createdb, dropuser, and all other client programs installed in /usr/lib/postgresql/version/bin).
DESCRIPTION
This program is run only as a link to names which correspond to PostgreSQL programs in /usr/lib/postgresql/version/bin. It determines the
configured cluster and database for the user and calls the appropriate version of the desired program to connect to that cluster and
database, supplying any specified options to that command.
The target cluster is selected by the following means, in descending order of precedence:
1. explicit specification with the --host option
2. explicit specification with the --cluster option
3. if the PGHOST environment variable is set, no further cluster selection is performed. The default PostgreSQL version and port number
(from the command line, the environment variable PGPORT, or default 5432) will be used.
4. explicit specification with the PGCLUSTER environment variable
5. matching entry in ~/.postgresqlrc (see postgresqlrc(5)), if that file exists
6. matching entry in /etc/postgresql-common/user_clusters (see user_clusters(5)), if that file exists
7. If only one local cluster exists, that one will be selected.
8. If several local clusters exist, the one listening on the default port 5432 will be selected.
If none of these rules match, pg_wrapper aborts with an error.
OPTIONS
--cluster version/cluster
cluster is either the name of a local cluster, or takes the form host:port for a remote cluster. If port is left empty (i. e. you just
specify host:), it defaults to 5432.
ENVIRONMENT
PGCLUSTER
If $PGCLUSTER is set, its value (of the form version/cluster) specifies the desired cluster, similar to the --cluster option. However,
if --cluster is specified, it overrides the value of $PGCLUSTER.
PG_CLUSTER_CONF_ROOT
This specifies an alternative base directory for cluster configurations. This is usually /etc/postgresql/, but for testing/development
purposes you can change this to point to e. g. your home directory, so that you can use the postgresql-common tools without root
privileges.
FILES
/etc/postgresql-common/user_clusters
stores the default cluster and database for users and groups as set by the administrators.
$HOME/.postgresqlrc
stores defaults set by the user himself.
SEE ALSO
user_clusters(5), postgresqlrc(5)
AUTHOR
Martin Pitt <mpitt@debian.org>
Debian 2013-01-04 PG_WRAPPER(1)