Ignore:
Timestamp:
10/23/13 17:21:24 (11 years ago)
Author:
labetoulle
Message:

Bugfix for RunChecker? on Ada :
Skip the first and the last two lines of llq output when looking for running jobs (#131).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh

    r959 r960  
    20722072  fi 
    20732073 
    2074   # With -f option, the full job name is given in the last column 
    2075   set -A JobList $( llq -u $1 -W -f %jn | gawk '( $1 != /TS/      && \ 
    2076                                                   $1 !~ /PACK/    && \ 
    2077                                                   $1 !~ /REBUILD/ && \ 
    2078                                                   $1 !~ /pack/ )     \ 
    2079                                                 { print $1 }' | sed -e "s/\(.*\)\.[0-9]*/\1/" ) 
     2074  # With -W option, column width is as large as necessary 
     2075  set -A JobList $( llq -u $1 -W -f %jn | head -n -2 | tail -n +3 | \ 
     2076                    gawk '( $1 != /TS/      && \ 
     2077                            $1 !~ /PACK/    && \ 
     2078                            $1 !~ /REBUILD/ && \ 
     2079                            $1 !~ /pack/ )     \ 
     2080                          { print $1 }' | sed -e "s/\(.*\)\.[0-9]*/\1/" ) 
    20802081 
    20812082  eval set -A ${2} ${JobList[*]} 
Note: See TracChangeset for help on using the changeset viewer.