Changeset 78 for trunk/IPs/systemC/processor/Morpheo/Script/execute_n.sh
- Timestamp:
- Mar 27, 2008, 11:04:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Script/execute_n.sh
r2 r78 8 8 declare FILE_CPT; 9 9 declare FILE_CPU; 10 declare ID="cpu-$ HOSTNAME-$$"10 declare ID="cpu-${HOSTNAME}-$$" 11 11 12 12 #-----[ usage ]--------------------------------------------- 13 13 function usage () 14 14 { 15 echo "Usage : $0 file [ nb_process ]"; 16 echo " * file : list of command"; 17 echo " * nb_process : number of process (default (and maximum) is the number of processor)"; 15 echo "Usage : $0 file [ nb_process ]"; 16 echo "Arguments : "; 17 echo " * file : list of command"; 18 echo " * nb_process : number of process (default (and maximum) is the number of processor)"; 18 19 echo ""; 19 echo "Note - This script, for each command, create a directory : Task_X (X is the number of command), and execute the command in this directory."; 20 echo " - Two file is generate : \"output\" is the output of the execution, and \"command\" is the command lunch."; 21 echo " - A command empty (no command on a line of file1) is a synchronisation with all process" 22 echo " - Don't forgot the final end of line (else the last command is not executed"; 20 echo "Note : "; 21 echo " * This script, for each command, create a directory : Task_X (X is the number of command), and execute the command in this directory."; 22 echo " * Two file is generate : \"output\" is the output of the execution, and \"command\" is the command lunch."; 23 echo " * A command empty (no command on a line of file) is a synchronisation with all process" 24 echo " * Don't forgot the final end of line (else the last command is not executed"; 23 25 echo ""; 24 26 exit; … … 30 32 local FILE_CPUINFO=/proc/cpuinfo; 31 33 if test ! -f $FILE_CPUINFO; then 32 echo "\"$ FILE_CPUINFO\" don't exist."34 echo "\"${FILE_CPUINFO}\" don't exist." 33 35 usage; 34 36 fi; 35 37 36 eval "$1=`grep -c \"processor\" $ FILE_CPUINFO`";38 eval "$1=`grep -c \"processor\" ${FILE_CPUINFO}`"; 37 39 } 38 40
Note: See TracChangeset
for help on using the changeset viewer.