03-27-2006
cat xyz.txt|while read line
do
rpm -ivh $line
done
Gaurav
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I am trying to write a ftp script which will read a file for filenames and ftp those files to another server. Here's my ftp script, but it's scanning the current directory for file names.
My question is how can I pass multiple files (these files will have the name of data files that need to... (0 Replies)
Discussion started by: sajjad02
0 Replies
2. Shell Programming and Scripting
Hi one & All ,
My Need is to Create 64 Partition and create File System in Linux.
I have the Script ...
for((a=0;a<=63;a++))
do
fdisk /dev/cciss/c0d$a
done
for((a=0;a<=63;a++))
do
mkfs.ext2 /dec/cciss/'c0d'$a'p1'
done
the moment I run the Script I get the Prompt ...
Command... (1 Reply)
Discussion started by: nix-kid
1 Replies
3. Shell Programming and Scripting
Hi,
Some one please help me with this script.
I have a file "sequence.txt" and contents of it look like below.
1 5
3 7
4 7
5 74
from my script i should be able to read every single and save the first columnbs to variable x1, x2, x3 and second column as y1, y2, y3 and so on. Then i can... (3 Replies)
Discussion started by: pragash_ms
3 Replies
4. Shell Programming and Scripting
Dear All
I am trying to write one shell which will be running through Cron which contain one SQL query. But I want to draw/fetch the Username password and Instance name (required to loging to the database) from one single file to run that SQL query . Also this file contain details of multiple... (2 Replies)
Discussion started by: jhon
2 Replies
5. Shell Programming and Scripting
This is going to be part of a longer script with more features, but I have boiled it down to the one thing that is presently stumping me. The goal is a script which checks for updates to web pages that can be run as a cron job. The script reads (from a tab-delim file) a URL, an MD5 digest, and an... (1 Reply)
Discussion started by: fitzwilliam
1 Replies
6. SCO
After System power get failed
File system is not getting mounted in read- write mode (1 Reply)
Discussion started by: gtkpmbpl
1 Replies
7. Shell Programming and Scripting
Please help with this simple example. I can not figure out how to do it. A file named “job” contains only this one line:var=5I need a script to read the job file and execute it as a command. This is my attempt (it does not work):#!/bin/sh
exec < job
echo "var = $var"output should read “var = 5”... (5 Replies)
Discussion started by: wolfv
5 Replies
8. Shell Programming and Scripting
i have a scenario where in i have to monitor jobs which run in different servers, The job details(job name, host server, etc) are present in a dat file.
I have written a script a script which reads the details from the dat file and calls a local method where the job monitoring logic is present.... (2 Replies)
Discussion started by: abubucker0
2 Replies
9. Shell Programming and Scripting
Dear user/friends,
After a long gap of 6 years i am back to this forum to find a solution and i hope i will get a solution or atleast a workaround for the problem:p
Following is my task which i am trying for almost 3 days without any success.
1) run this command from my terminal (note i... (7 Replies)
Discussion started by: imas
7 Replies
10. Shell Programming and Scripting
Dears,
Need help to implement below requirement
A file (detail.txt)contain :
1st column: Stream
2nd column: PathAddress
3rd column: Counterlimit
4th column: TransactionDateColumn
5th column: DateType
6th column: SleepValue
7th column: Status
Need to write a... (1 Reply)
Discussion started by: sadique.manzar
1 Replies
LEARN ABOUT CENTOS
pmdarpm
PMDARPM(1) General Commands Manual PMDARPM(1)
NAME
pmdarpm - RPM packages performance metrics domain agent (PMDA)
SYNOPSIS
$PCP_PMDAS_DIR/rpm/pmdarpm [-C] [-d domain] [-l logfile] [-r path] [-U username]
DESCRIPTION
pmdarpm is a Performance Metrics Domain Agent (PMDA) which extracts performance metrics reflecting the state of the RPM package database
managed by rpm(1).
The rpm PMDA exports metrics that describe each package installed on a system, as well as some cumulative totals. When the RPM database
changes the PMDA automatically detects this and uses a background thread to asynchronously refresh its values.
A brief description of the pmdarpm command line options follows:
-C Verify the package iteration code by scanning the RPM database once, then exiting. Only useful for problem diagnosis and testing.
-d It is absolutely crucial that the performance metrics domain number specified here is unique and consistent. That is, domain should
be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts.
-l Location of the log file. By default, a log file named rpm.log is written in the current directory of pmcd(1) when pmdarpm is
started, i.e. $PCP_LOG_DIR/pmcd. If the log file cannot be created or is not writable, output is written to the standard error
instead.
-r Specify an alternate path to the RPM database (default is /var/lib/rpm/Packages).
-U User account under which to run the agent. The default is the unprivileged "pcp" account.
INSTALLATION
If you want access to the names, help text and values for the rpm performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/rpm
# ./Install
If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/rpm
# ./Remove
pmdarpm is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is
installed or removed.
FILES
$PCP_PMCDCONF_PATH
command line options used to launch pmdarpm
$PCP_PMDAS_DIR/rpm/help
default help text file for the rpm metrics
$PCP_PMDAS_DIR/rpm/Install
installation script for the pmdarpm agent
$PCP_PMDAS_DIR/rpm/Remove
undo installation script for the pmdarpm agent
$PCP_LOG_DIR/pmcd/rpm.log
default log file for error messages and other information from pmdarpm
PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the
file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura-
tion file, as described in pcp.conf(5).
SEE ALSO
PCPIntro(1), pmcd(1), pcp.conf(5) and pcp.env(5).
Performance Co-Pilot PCP PMDARPM(1)