Mercurial > hg > cc > cirrus_work
comparison bin/_runme.sh @ 370:c5b4f3e9f909 plus
-a working now?
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Mon, 20 Apr 2026 18:18:11 +0100 |
| parents | bd931adc820b |
| children |
comparison
equal
deleted
inserted
replaced
| 369:710aca6b07e4 | 370:c5b4f3e9f909 |
|---|---|
| 44 pjobs=$((c / $threadsPerJob)) | 44 pjobs=$((c / $threadsPerJob)) |
| 45 | 45 |
| 46 echo $(date) ${xa}task $n.$task on $nodename:$N.$node start $pjobs 1>&2 | 46 echo $(date) ${xa}task $n.$task on $nodename:$N.$node start $pjobs 1>&2 |
| 47 | 47 |
| 48 PATH=$W/$USER/bin:$W/shared/bin:$PATH | 48 PATH=$W/$USER/bin:$W/shared/bin:$PATH |
| 49 export task PATH n node #xarg | 49 export task PATH n node xarg |
| 50 | 50 |
| 51 if [ "$1" = "-b" ] | 51 if [ "$1" = "-b" ] |
| 52 then | 52 then |
| 53 shift | 53 shift |
| 54 eval "$1" | 54 eval "$1" |
| 72 shift | 72 shift |
| 73 | 73 |
| 74 doit () { | 74 doit () { |
| 75 arg="$1" | 75 arg="$1" |
| 76 i="$2" | 76 i="$2" |
| 77 echo $(date) start $task $i "|$node|$arg|" # |$xarg | 77 echo $(date) start $task $i "|$node|$arg|$xarg|" |
| 78 eval "$cmd" | 78 eval "$cmd" |
| 79 echo $(date) end $task $i | 79 echo $(date) end $task $i |
| 80 } | 80 } |
| 81 | 81 |
| 82 export -f doit | 82 export -f doit |
