Hi there, I am new to scripting and wanted to see if someone can show me how to grep on multiple processes and send the output to a file in /home/mydir/output.
I am aware of
but need help looking up multiple processes, can you use this command
or
thanks alot
Last edited by methyl; 07-11-2012 at 07:27 PM..
Reason: attempt to lay out the post with code tags
Suppose that I am performing some operation on an sql database. Lets say process of Searching and then if a value is found, updating it... Now, when I have some millions of records on which the operation has to be performed... Does it help to spawn multiple processes each executing the same... (9 Replies)
Hi - I need help. My user crontab is spawning multiple at processes (and multiple mencoder program starts, that exit, then restart, repeatedly), locking up my system.
For example I have this entry in my crontab:
$ sudo crontab -u victoria -e
* * * * * ~/recordings/pvr1
* * * * *... (10 Replies)
Hello
I've got a script that creates multiple processes, in ksh, to bcp out 6 tables at a time. In the script, we write messages to the log to show our progress; most of the time, the log messages are nice and neat with one per line, like they should be. But every once in awhile, at random, the... (2 Replies)
Hi guys,
I want to run the multiple scripts at the same time using a ksh script.
For example, I have three scripts to run:
a.ksh, b.ksh and c.ksh
How to start the above 3 scripts simultaneously and then on the completion of the above scripts I have other tasks to schedule.
Thanks
Gary (6 Replies)
I'm trying to make a program that will spawn multiple child processes then exit. I'm having trouble figuring out how to do this since after I fork, the child process begins running the program again (never ending).
int main(void){
for(int i = 0; i < 3; i++){
fork();
}... (1 Reply)
I am having problems creating multiple forks. I want create a certain number of forks, each call a program and each wait for a different value. How is this accomplished my loop is not doing the trick.
for (i = 0; i < 5; i++) {
if (fork() < 0) {
//print error
}
... (3 Replies)
I have a number of binaries which I currenlty have no control over. They alright data to stdout. I would like to kick off any number of these binaries and capture and process their stdout. Doing this for one process is straight forward for example - comments and error checking removed for... (6 Replies)
Want to kill multiple processes by name. for the example below, I want to kill all 'proxy-stagerd_copy' processes.
I tried this but didn't work:
>> ps -ef|grep proxy_copy
root 991 986 0 14:45:34 ? 0:04 proxy-stagerd
root 1003 991 0 14:45:49 ? 0:01... (2 Replies)
Hello people,
I got one problem with a script.
I have a script which runs every five mins and in the script an ftp process is invoked which sends files to a particular location.
The problem is that the ftp process hangs every now and then which causes the whole script to hang.
As the... (4 Replies)
Hi,
I have three files in my IN directory.Each file should be copied 25 times using for loop.Each file processing should run in parallel?How to spawn multiple processes in unix?Any help would be appreciated.
Thanks,
Liyakath (7 Replies)
Discussion started by: liyakathali
7 Replies
LEARN ABOUT CENTOS
mkaf
MKAF(1) General Commands Manual MKAF(1)NAME
mkaf - create a Performance Co-Pilot archive folio
SYNOPSIS
$PCP_BINADM_DIR/mkaf [findopts] filename ...
DESCRIPTION
A collection of one or more Performance Co-Pilot (see PCPIntro(1)) archive logs may be combined with mkaf to produce a PCP archive folio
and the associated archive folio control file. Some PCP tools use mkaf to create archive folios, e.g. the ``record'' facility in the
pmchart(1) and pmview(1) tools, to facilitate playback with pmafm(1).
mkaf processes each filename argument, and if this is a component file from a PCP archive that archive is added to the folio.
If filename is a directory, then this is searched recursively using find(1). Any filename argument beginning with a ``-'' is assumed to be
a find(1) command line option (findopts); the default is -follow if no findopts are specified.
The first named archive in the folio is assumed to be associated with the default host for any tool that tries to replay multiple archives
from the folio.
The folio control file is written to standard output, and has the following format.
1. The first line contains the word PCPFolio.
2. The second line contains the tag Version: followed by the format version number (currently 1).
3. For subsequent lines, blank lines and lines beginning with ``#'' are ignored.
4. The line beginning with the tag Created: documents where and when the folio was created.
5. The line beginning with the tag Creator: identifies the tool which created the folio (and is assumed to know how to replay the archive
folio). If present, the second argument is the name of a configuration file that the creator tool could use to replay the archive
folio, e.g. with the replay command for pmafm(1). In the case of mkaf (unlike pmchart(1) or pmview(1)) there is no knowledge of the
contents of the archives, so the ``creator'' cannot replay the archive, however pmchart(1) is able to replay any archive, and so this
tool is identified as the Creator: for archive folios created by mkaf(1).
6. This is then followed by one or more lines beginning with the tag Archive: followed by the hostname and base name of the archive.
For example
$ mkaf mydir/gonzo
might produce the following folio control file.
PCPFolio
Version: 1
# use pmafm(1) to process this PCP archive folio
#
Created: on gonzo at Tue Jul 2 03:35:54 EST 1996
Creator: pmchart
# Host Basename
#
Archive: gonzo mydir/gonzo/960627
Archive: gonzo mydir/gonzo/960628
Archive: gonzo mydir/gonzo/960629
Archive: gonzo mydir/gonzo/960630
Archive: gonzo mydir/gonzo/960701
Archive: gonzo mydir/gonzo/960701.00.10
Archive: gonzo mydir/gonzo/960701.05.25
Archive: gonzo mydir/gonzo/960702.00.10
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 find(1), PCPIntro(1), pmafm(1), pmchart(1), pmview(1), pcp.conf(5) and pcp.env(5).
DIAGNOSTICS
Some informational messages, warnings and pathological conditions are reported on standard error.
Performance Co-Pilot PCP MKAF(1)