GNU Parallel and Solaris 11 -


i'm trying run number of jobs using parallel command in solaris 11 following command:

find . -name "job*" | parallel -p 64 ::: 

the cwd has script files job1...job256 need run. these files have few variable definitions , run fine running: ./job1 & ./job2 & etc

however, following error gnu parallel when run command:

/usr/bin/bash: 1: command not found ... /usr/bin/bash: 1: command not found 

256 times

these procedure runs fine in debian box not in solaris 11 + sparc box.

can please point out solution?

thanks!

i don't know if problem, question had google juice me , maybe can people same problem had.

it first time used gnu parallel, , set parallel=1 on bash script flag use enable parallel tests. when ran it, saw error message. when stripped down test command simple echo. outside bash script error wouldn't occur. hmmm.

parallel=2 caused "2: command not found".

turns out, read gnu parallel.

from man page:

$parallel       environment variable $parallel used default options gnu parallel. if variable       contains special shell characters (e.g. $, *, or space) these need to escaped \. 

and 1 can interpreted argument gnu parallel. doesn't start dash, interpreted command.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -