LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2013, 11:24 PM   #1
maryam.pk
LQ Newbie
 
Registered: Nov 2012
Location: malaysia
Posts: 24

Rep: Reputation: Disabled
find command and gun parallel


hi all,
I am looking for executing some binary files(named app) at the same time with the find command.

I run this command but it doesnt work:
find . -name app -type f | parallel -ij2 app

Can anyone help me?

Thanks.

Last edited by maryam.pk; 06-29-2013 at 11:38 PM.
 
Old 06-29-2013, 11:41 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
unfortunately, no, not until you include the error message(s) you got when trying to run the command and/or describe what happens/doesn't happen

'it doesn't work' is too vague.
 
Old 06-29-2013, 11:58 PM   #3
maryam.pk
LQ Newbie
 
Registered: Nov 2012
Location: malaysia
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frieza View Post
unfortunately, no, not until you include the error message(s) you got when trying to run the command and/or describe what happens/doesn't happen

'it doesn't work' is too vague.
no errors, nothing happened.

I think the output of find is the list of directories that those files exist and the parallel command can not execute directories, becuase when I execute this command:
find . -name app -type f
the output is:
./0/app
./3/app
./2/app
./1/app

I just want to run them at the same time.
When I execute this command:
find . -name boinc_app -type f -execdir {} +\
all of the files are running but not in parallel,separately.
 
Old 06-30-2013, 05:53 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If(!) I understand what you are trying to do, how abut
Code:
 find . -name app -type f | xargs parallel -ij2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nvidia and ARM: It's a parallel, parallel, parallel world LXer Syndicated Linux News 0 03-21-2013 07:10 PM
[SOLVED] Executing a command in parallel | GNU parallel or xargs the_gripmaster AIX 3 05-08-2012 08:41 AM
find parallel port address? muddywaters Linux - General 4 05-27-2007 01:46 PM
Can't find parallel port /printer Richard Perry Linux - Hardware 1 03-04-2005 08:33 PM
Mandrake 9 can't find parallel port printer jrfay Linux - Hardware 0 03-14-2003 01:11 PM


All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration