job race!

2013-04-23 Thread Ozgur Akgun
Hi, I wonder if I can use parallel to implement a "race" of jobs. Following is what I want. Given X jobs, start them all in parallel. # cat jobs.txt | parallel -j$(cat jobs.txt | wc -l) The first one to finish is the winner. Kill all the rest, and report the winner somehow. (Would also be nice

Re: job race!

2013-04-23 Thread Ozgur Akgun
On 23 April 2013 22:31, Ozgur Akgun wrote: > (Would also be nice to accept a timeout value from the user, telling how > long they are willing to wait. If nothing finishes within the timeout, > there is no winner.) And before people start bashing me about this, I just remembered `--timeout` of p

Re: job race!

2013-04-23 Thread Hans Schou
Use --joblog to get the execution time and after each job-line running jobs.txt add " ; killall racejobs ". Does this make sence? /hans 2013/4/23 Ozgur Akgun > Hi, > > I wonder if I can use parallel to implement a "race" of jobs. > > Following is what I want. > > Given X jobs, start them all