source: TOOLS/SURPACK_IPSL/check_libccc_user.sh @ 3624

Last change on this file since 3624 was 2136, checked in by acosce, 11 years ago

add new tools allows packing simulation alreaddy pack (so pack with a bigger frequency)

File size: 499 bytes
Line 
1#!/bin/bash
2
3function check_cdo
4{
5   . load_ipslPack_env.sh
6   module list >& ${TMP_MIGR_DATA}/myModuleList.txt
7   
8   # Presence de la chaine "n) nco/" ou n est un nombre 
9   nb_of_libLines=` grep -e '[[:digit:]]*) libccc_user/' ${TMP_MIGR_DATA}/myModuleList.txt | wc -l `
10
11   if [ "x${nb_of_libLines}" == "x0" ]
12   then
13       # echo "1"
14       exit 1
15   fi
16
17   # Plus besoin du myModuleList.txt
18   rm -f ${TMP_MIGR_DATA}/myModuleList.txt > /dev/null 2>&1
19   # echo "0"
20   exit 0
21
22}
23
24
25check_cdo
Note: See TracBrowser for help on using the repository browser.