shell - Specifying a non-sequential array for the SGE task ID -
i submit job array list of non-sequential numbers sge_task_id , error says, "the initial portion of string 'file.sh' doesn't contain decimal numbers". suggestions?
i have file containing values use sge_task_ids. call file "tasknumbers" (exactly how appears in file).
3 5 10 25 50 100
i have shell script retrieve values input sge_task_ids
#!/bin/sh #taskid.sh taskid=~/folder/tasknumbers id=$(awk "nr==sge_task_id" $taskid)
i have additional file sge_task_id used input parameter call file.sh (this wrapper takes task id , inputs value in test).
in terminal typed (which returns error):
qsub -cwd -n output -t $id ./file.sh -pe
the error:
qsub: numerical value invalid! initial portion of string "./file.sh" contains no decimal number
maybe work:
tasknumbers file:
1 3 5 10 25 50 100
use loop submit 1 job per task id:
for id in `cat tasknumbers` qsub -cwd -n output -t $id ./file.sh -pe done
Comments
Post a Comment