Changeset 1103 for palm/trunk/SCRIPTS/subjob
- Timestamp:
- Feb 20, 2013 2:15:53 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/subjob
r1100 r1103 23 23 # Current revisions: 24 24 # ------------------ 25 # 25 # bash compatibility adjustments (usage of OPTIND, output formatting with printf 26 # instead typeset -L/R), 27 # further adjustments for lckyuh 26 28 # 27 29 # Former revisions: … … 73 75 typeset -i cputime=0 memory=0 Memory=0 minuten resttime sekunden stunden 74 76 typeset -i inumprocs mpi_tasks=0 nodes=0 processes_per_node=0 tasks_per_node=0 threads_per_task=1 75 typeset -L20 spalte176 typeset -R40 spalte277 typeset -L60 spalte378 77 79 78 … … 123 122 (bd4) local_addres=130.73.232.67; local_host=lcsgib;; 124 123 (b01*|bicegate1) local_addres=130.73.232.102; local_host=lcsgib;; 124 (b04*) local_addres=133.5.4.33; local_host=lckyuh;; 125 125 (bicegate2) local_addres=130.73.232.103; local_host=lcsgib;; 126 126 (blizzard1) local_addres=136.172.40.15; local_host=ibmh;; … … 220 220 221 221 # JOBDATEINAMEN ALS NAECHSTES ARGUMENT HOLEN 222 shift OPTIND-1; file_to_send=$1 222 (( to_shift = $OPTIND - 1 )) 223 shift $to_shift; file_to_send=$1 223 224 224 225 … … 525 526 printf "#--------------------------------------------------------------# \n" 526 527 spalte1=SUBJOB;spalte2=$(date) 527 printf "| $spalte1$spalte2 | \n"528 printf "| %-20s%40s | \n" "$spalte1" "$spalte2" 528 529 printf "| | \n" 529 530 printf "| values of parameters/options: | \n" 530 spalte1=local_host$punkte; spalte2=$punkte$local_host 531 printf "| $spalte1$spalte2 | \n" 532 spalte1=remote_host$punkte; spalte2=$punkte$remote_host 533 printf "| $spalte1$spalte2 | \n" 534 spalte1=queue$punkte; spalte2=$punkte$queue 535 printf "| $spalte1$spalte2 | \n" 536 spalte1=memory$punkte; spalte2="$punkte$memory mb" 537 printf "| $spalte1$spalte2 | \n" 538 spalte1=cputime$punkte; spalte2="$punkte$cputime sec" 539 printf "| $spalte1$spalte2 | \n" 540 spalte1=job_name$punkte; spalte2="$punkte$job_name" 541 printf "| $spalte1$spalte2 | \n" 531 spalte1=$(echo local_host$punkte | cut -c-20) 532 spalte2=$punkte$local_host 533 printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" 534 spalte1=$(echo remote_host$punkte | cut -c-20) 535 spalte2=$punkte$remote_host 536 printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" 537 spalte1=$(echo queue$punkte | cut -c-20) 538 spalte2=$punkte$queue 539 printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" 540 spalte1=$(echo memory$punkte | cut -c-20) 541 spalte2="$punkte$memory mb" 542 printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" 543 spalte1=$(echo cputime$punkte | cut -c-20) 544 spalte2="$punkte$cputime sec" 545 printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" 546 spalte1=$(echo job_name$punkte | cut -c-20) 547 spalte2="$punkte$job_name" 548 printf "| %-20s%40s | \n" "$spalte1" "${spalte2: -40}" 542 549 printf "#--------------------------------------------------------------# \n\n" 543 550 … … 1577 1584 then 1578 1585 chmod u+x $job_on_remhost 1579 echo "$submcom $job_on_remhost"1580 1586 eval $submcom $job_on_remhost 1581 1587 elif [[ $local_host = nech ]]
Note: See TracChangeset
for help on using the changeset viewer.