Ignore:
Timestamp:
Jun 17, 2009, 2:11:25 PM (15 years ago)
Author:
rosiere
Message:

1) Add test and configuration
2) Fix Bug
3) Add log file in load store unit
4) Fix Bug in environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Script/distexe.sh

    r112 r124  
    44# $Id$
    55#-----------------------------------------------------------
     6
     7VERSION="1.0"
    68
    79# Need : test, echo, cd, dirname, basename, ssh
     
    3941}
    4042
     43#-----[ my_date ]-------------------------------------------
     44function my_date ()
     45{
     46    date +"%F %T";
     47}
     48
    4149#-----[ distexe_test_usage ]--------------------------------
    4250function distexe_test_usage ()
     
    6775        fi;
    6876    fi;
     77}
    6978
     79#-----[ header ]--------------------------------------------
     80function header ()
     81{
     82    echo "distexe ${VERSION}";
    7083}
    7184
     
    8093    cd -;
    8194
    82     # Absoulte path of work directory
    83     local    DIR_EXE;
     95    # Absolute path of work directory
     96    local    PATH_EXE;
    8497    if test ${#} -eq 2; then
    85         cd ${2};
    86         DIR_EXE=${PWD};
    87         cd -;
     98        cd ${2} &> /dev/null;
     99        PATH_EXE=${PWD};
     100        cd -  &> /dev/null;
    88101    else
    89         DIR_EXE=${PWD};
     102        PATH_EXE=${PWD};
    90103    fi;
     104
     105    header;
     106    echo "  * {"$(my_date)"} <${HOSTNAME}> file : ${FILE_CMD}";
     107    echo "  * {"$(my_date)"} <${HOSTNAME}> path : ${PATH_EXE}";
    91108
    92109    local hosts="${DISTEXE_HOSTS}";
     
    96113        local -i nb_process=$(echo ${line} | cut -d/ -f2);
    97114
    98         echo " * station : ${host} (${nb_process}) ... ";
     115        echo "  * {"$(my_date)"} <${HOSTNAME}> station : ${host} (${nb_process}) ... ";
    99116
    100117        # lunch service
    101         local cmd="export MORPHEO_SCRIPT=${MORPHEO_SCRIPT};${MORPHEO_SCRIPT}/execute_n.sh ${DIR_EXE} ${FILE_CMD} ${nb_process};";
     118        local cmd="export MORPHEO_SCRIPT=${MORPHEO_SCRIPT};${MORPHEO_SCRIPT}/execute_n.sh ${PATH_EXE} ${FILE_CMD} ${nb_process};";
    102119        ssh ${host} ${cmd} &
    103120    done;
     121
     122    echo "  * {"$(my_date)"} <${HOSTNAME}> all hosts working";
     123
    104124}
    105125
Note: See TracChangeset for help on using the changeset viewer.