Calling python script from bash script while using GNU Parallel
I am trying to run a python script in parallel (with GNU parallel 201107开发者_C百科22). As it could be seen below, I am not able to run in any of the ways I tried.
(^C
marks the point where I interrupt the job with ctrl+C because there is no response from the system).
me@kubuntu:~/Programs/LeitMotifsParallel$ parallel python {1} :::: <(echo MainMult.18136.py)
^C
me@kubuntu:~/Programs/LeitMotifsParallel$ parallel python {1} ::: <(echo MainMult.18136.py)
File "/dev/fd/63", line 1
MainMult.18136.py
^
SyntaxError: invalid syntax
me@kubuntu:~/Programs/LeitMotifsParallel$ parallel MainMult.18136.py
parallel: Input is tty. Press CTRL-D to exit.
^C
me@kubuntu:~/Programs/LeitMotifsParallel$
However, the python script runs as expected when run directly from console.
me@kubuntu:~/Programs/LeitMotifsParallel$ MainMult.18136.py
/home/me/Programs/LeitMotifsParallel/StAlg.py:6: DeprecationWarning: the sets module is deprecated
import sets #@UnusedImport
Start : 18:59:34 11Aug2011
['M']
['M']
(...)
I haven't been succesful in finding an answer for this situation, so I would really appreciate if you could help me solve this.
If http://www.biostars.org/p/11132/#11139 does not answer your question, please elaborate what is missing.
精彩评论