some error in my script - unix - תכנות - HWzone פורומים
עבור לתוכן
  • צור חשבון

some error in my script - unix


assaf990

Recommended Posts

מקבל שגיאה בעת נסיון ההרצה

Line 19: Unexpected EOF while looking for matching `` '

Line 34: sintax error: Unexpected End of File

 
#!/bin/bash
LOG=/home/oraprg/dudu
HDD=1
LIMIT=0
genStat()
{
test=$1
SLEEP=$2
filename=$(date +%Y%m%d%H%M%S)
for((num=0;num> ${LOG}/vm.${filename}.log &
sleep $SLEEP
done
if [[ LIMIT -eq test ]]
then
#VM csv
echo this is line 18> ${LOG}/vm.${filename}.csv
cat ${LOG}/vm.${filename}.log awk '{for(l=1;l<17;l++)>> ${LOG}/vm.${filename}.csv
fi
}
case $1 in
run)
genStat $2 $3
;;
*)
echo -e ":::: Usage ::::"
echo -e "$0 run 5 10 : Collect stats for 5 times with 10 seconds interval"
echo -e "Note : Change the first parameter for the number of stats"
echo -e " Change the second parameter for the number of seconds between each stats"
;;
esac

קישור לתוכן
שתף באתרים אחרים

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

×
  • צור חדש...