LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10: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 10:38 PM.
 
Old 06-29-2013, 10: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,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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, 10: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, 04:53 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

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


Reply



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 06:10 PM
[SOLVED] Executing a command in parallel | GNU parallel or xargs the_gripmaster AIX 3 05-08-2012 07:41 AM
find parallel port address? muddywaters Linux - General 4 05-27-2007 12:46 PM
Can't find parallel port /printer Richard Perry Linux - Hardware 1 03-04-2005 07:33 PM
Mandrake 9 can't find parallel port printer jrfay Linux - Hardware 0 03-14-2003 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:28 PM.

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
Open Source Consulting | Domain Registration