Ignore:
Timestamp:
Jun 17, 2009, 8:10:41 PM (15 years ago)
Author:
rosiere
Message:

modif distexe script

File:
1 edited

Legend:

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

    r124 r126  
    2727function execute_n_usage ()
    2828{
    29     echo "Usage     : ${0} path_word file [ nb_process ]";
     29    echo "Usage     : ${0} path_word file_cmd file_cpt [ nb_process ]";
    3030    echo "Arguments : ";
    3131    echo " * path_work  : directory to execute command";
    32     echo " * file       : list of command";
     32    echo " * file_cmd   : list of command";
     33    echo " * file_cpt   : file to control";
    3334    echo " * nb_process : number of process (default (and maximum) is the number of processor)";
    3435    echo "";
     
    4546function execute_n_test_usage ()
    4647{
    47     if test ${#} -ne 2 -a ${#} -ne 3; then
     48    if test ${#} -ne 3 -a ${#} -ne 4; then
    4849        execute_n_usage;
    4950    fi;
     
    7677    local    PATH_WORK=${1};
    7778    local    FILE_CMD=${2};
    78     local    FILE_CPT;
     79    local    FILE_CPT=${3};
    7980    local    FILE_CPU;
    8081    local    ID="cpu-${HOSTNAME}-$$"
     
    8283    execute_n_test_usage ${*};
    8384
    84     if test ${#} -eq 3; then
    85         if test ${3} -lt ${NB_PROCESS}; then
    86             NB_PROCESS=${3};
     85    if test ${#} -eq 4; then
     86        if test ${4} -lt ${NB_PROCESS}; then
     87            NB_PROCESS=${4};
    8788        fi;   
    8889    fi;
    8990
    90     FILE_CPT="${PATH_WORK}/control-"$(basename ${FILE_CMD});
    9191    FILE_CPU="${PATH_WORK}/${ID}";
    9292
Note: See TracChangeset for help on using the changeset viewer.