עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

some error in my script - unix

Featured Replies

פורסם

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

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

פורסם

הבעיה בשורה


cat ${LOG}/vm.${filename}.log awk '{for(l=1;l<17;l++)>> ${LOG}/vm.${filename}.csv

יש לך שם ' שלא ברור מה אתה רוצה לעשות איתו.

פורסם
  • מחבר

מחקתי אותו ואני מקבל בשורה 31:

syntax error near 'run)'

אגב זה לינוקס ולא יוניקס. לא יודע האם זה משנה

פורסם

יש לך גם פתיחה של סוגר מסולסל שלא ברור מה אתה רוצה לעשות גם איתה.

בלי קשר, תקרא את השורה שרשמת ותבדוק אותה מבחינה תחבירית. היית חוסך לעצמך הרבה זמן ככה.

פורסם
  • מחבר

OK

הבעייה שאני לא ככ יודע לכתוב סקריפטים

ארכיון

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

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.