Search Results

Search: Posts Made By: tange
6,392
Posted By tange
I am confused now. Did you read...
I am confused now. Did you read http://oletange.blogspot.dk/2013/04/why-not-install-gnu-parallel.html? And did you understand that you do *not* need admins to install GNU Parallel as long as you are...
6,392
Posted By tange
If you are allowed to run your own perl script...
If you are allowed to run your own perl script you are allowed to run GNU Parallel.

See: _: Excuses for not installing GNU Parallel...
6,610
Posted By tange
Use GNU Parallel
Install GNU Parallel and do this:

$ foo() { echo $*; }

$ export fun="`typeset -f`"; parallel 'eval "$fun";'foo ::: works
works

$ export...
10,018
Posted By tange
So you want this line: ...
So you want this line:

ACYPI002690-PA.aa.afa.afa.trim_phyml_tree_fullnames_fullhomolog.txt 3 72 71

to run this command:

cat...
2,422
Posted By tange
sudo parallel...
sudo parallel /usr/openv/netbackup/bin/admincmd/bpimagelist -U -client {1} -d {2} -e 03/04/2013 :::: clients.file dates.file | awk '{print $1}' | sed '1,2d' >> /tmp/dates.tmp
1,939
Posted By tange
If you have GNU Parallel installed: find ....
If you have GNU Parallel installed:

find . -maxdepth 1 | parallel du -hs {} | parallel --colsep '\s+' echo {2} [{1}]
You can install GNU Parallel simply by:

wget...
8,484
Posted By tange
If you have GNU Parallel GNU Parallel - GNU...
If you have GNU Parallel GNU Parallel - GNU Project - Free Software Foundation (http://www.gnu.org/software/parallel/) installed you can do this:
parallel '{} >{.}.out' ::: sample*.shor:
seq 4 |...
12,958
Posted By tange
For best performance it is important that the...
For best performance it is important that the data is not written back to disk. So it is a goal to get everything done in RAM.

cat testfile | parallel --pipe --block 10M 'sort | uniq -c' | perl...
Forum: Solaris 09-04-2011
6,080
Posted By tange
Are the processes starved from disk I/O? I.e. is...
Are the processes starved from disk I/O? I.e. is your disk seeking all the time?

If you want more control over your processes in parallel consider using GNU Parallel to start similar processes in...
6,030
Posted By tange
To do it in parallel install GNU Parallel: find...
To do it in parallel install GNU Parallel:
find . -type f -name "execute_command.sh" | parallel
Watch the intro video to learn more: Part 1: GNU Parallel script processing and execution - YouTube...
1,073
Posted By tange
If you install GNU Parallel you should be able to...
If you install GNU Parallel you should be able to do:
parallel -j0 connectdb.sh {} {}.txt ::: db1 db2 db3
Watch the intro video to learn more: Part 1: GNU Parallel script processing and execution -...
Forum: Programming 09-04-2011
8,883
Posted By tange
Your example is in C. If that is not a...
Your example is in C. If that is not a requirement, have a look at GNU Parallel which is made for running programs in parallel without having the output mix.

Watch the intro video: Part 1: GNU...
8,438
Posted By tange
If you cannot accept that a few lines will be...
If you cannot accept that a few lines will be mixed together then you need to avoid race conditions like:
mkfifo fifo
(echo program1_line1; sleep 2; echo program1_line2) >fifo &
(echo...
7,681
Posted By tange
This is probably what you are looking for: ...
This is probably what you are looking for:

parallel -j0 mv {} {.} ::: *.xml.dat
parallel -j0 echo {} -\\\> {.}\;mv {} {.} ::: *.xml.dat
6,461
Posted By tange
GNU Parallel makes it often easy to generate...
GNU Parallel makes it often easy to generate command lines:
parallel "echo {}; cut -f5 {} | sort -k1.3n | uniq | wc -l" ::: *.rod
It will also run the jobs in parallel. If you jobs are...
6,461
Posted By tange
Consider using GNU Parallel instead: find ....
Consider using GNU Parallel instead:
find . -name '33_cr*.rod' | parallel "echo -n {}': '; cut -f5 {} | sort -k1.3n | uniq | wc -l"Watch the intro video to learn more: youtube....
10,255
Posted By tange
Easy with GNU Parallel
It is easy if you have GNU Parallel installed:

find . -name "*.me" | parallel mv {} {.}
9,598
Posted By tange
find /myfolder/*.dat -mtime +60 | xargs rm ...
find /myfolder/*.dat -mtime +60 | xargs rm

Using xargs like that is dangerous. See why xargs - Wikipedia, the free encyclopedia (http://en.wikipedia.org/wiki/Xargs#The_separator_problem)

If you...
5,200
Posted By tange
GNU Parallel...
GNU Parallel (http://www.gnu.org/software/parallel/) is your friend:

cat syslogs | nawk '/From/ { print $3 }' | uniq | parallel "grep {} syslogs >> {}"

This even does the grepping in parallel,...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 01:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy