פורסם 2011 במאי 3114 שנים מקבל שגיאה בעת נסיון ההרצהLine 19: Unexpected EOF while looking for matching `` 'Line 34: sintax error: Unexpected End of File #!/bin/bashLOG=/home/oraprg/duduHDD=1LIMIT=0genStat(){test=$1SLEEP=$2filename=$(date +%Y%m%d%H%M%S)for((num=0;num> ${LOG}/vm.${filename}.log &sleep $SLEEPdoneif [[ LIMIT -eq test ]]then#VM csvecho this is line 18> ${LOG}/vm.${filename}.csvcat ${LOG}/vm.${filename}.log awk '{for(l=1;l<17;l++)>> ${LOG}/vm.${filename}.csvfi}case $1 inrun)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
פורסם 2011 במאי 3114 שנים הבעיה בשורהcat ${LOG}/vm.${filename}.log awk '{for(l=1;l<17;l++)>> ${LOG}/vm.${filename}.csvיש לך שם ' שלא ברור מה אתה רוצה לעשות איתו.
פורסם 2011 ביוני 114 שנים מחבר מחקתי אותו ואני מקבל בשורה 31:syntax error near 'run)'אגב זה לינוקס ולא יוניקס. לא יודע האם זה משנה
פורסם 2011 ביוני 114 שנים יש לך גם פתיחה של סוגר מסולסל שלא ברור מה אתה רוצה לעשות גם איתה.בלי קשר, תקרא את השורה שרשמת ותבדוק אותה מבחינה תחבירית. היית חוסך לעצמך הרבה זמן ככה.
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.