source: TOOLS/check_libccc_user.sh @ 2133

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

New tools allows packing simulation already 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.