Search the Community

Showing results for tags 'emergency shutdown'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Official Buildings
    • GM Hall
    • City Hall
    • Game News
    • Public Test Board
  • Back Streets
    • Town Square
    • Community Assistance
    • Village Recruitment Center
    • Suggestions & Ideas
    • The Creative Commons
    • Wood Scraps
  • Northern Freedom Isles
    • Harmony
    • Melody
    • Cadence
    • Northern Freedom Isles Market
  • Southern Freedom Isles
    • Celebration
    • Deliverance
    • Exodus
    • Independence
    • Pristine
    • Release
    • Xanadu
    • Southern Freedom Isles Market
  • Maintenance Buildings
    • Technical Issues
    • Server Bugs
    • Client Bugs
    • Model and Sound Bugs
    • Other Bugs and Issues
    • Wurmpedia / Wiki Maintenance
  • Wurm Unlimited
    • Unlimited Discussion
    • Unlimited Modding
    • Server Listings & Advertisement
    • Technical Issues

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Chaos


Independence


Deliverance


Exodus


Celebration


Xanadu


Release


Pristine


Epic


Cadence


Defiance


Harmony


Melody


Acc1


Acc2


Acc3

Found 1 result

  1. necessary utility / Ð½ÐµÐ¾Ð±Ñ…Ð¾Ð´Ð¸Ð¼Ð°Ñ ÑƒÑ‚Ð¸Ð»Ð¸Ñ‚Ð° lm_sensors en: I encountered a problem turning off the computer processor overheated. To avoid shutting down the computer, I wrote poor script that kills all applications java. ################ ~/wurm.sh ########################!/usr/bin/bash echo "Start game"sh -c 'DRI_PRIME=1 javaws "~/.cache/icedtea-web/cache/0/http/www.wurmonline.com/client/wurmclient.jnlp"' & echo "Start overheat security"while [ 1 ]; do sleep 3 res=$(sensors coretemp-isa-0000 | grep 'id 0' | perl -n -e '/ +\+(.*)\.\d°C / && print "$1\n"') if [ $res -ge 82 ]; then echo "Overheating. Kill all java." killall java exit fidone################################################ Explanation: while [ 1 ]; do -- infinite loop sleep 3 -- waiting 3 second res=$(sensors coretemp-isa-0000 | grep 'id 0' | perl -n -e '/ +\+(.*)\.\d°C / && print "$1\n"') Write in the res results of the instruction pipeline. Were sensors coretemp-isa-0000 -- getting information from the my CPU temperature sensor grep 'id 0' -- Preparation of total CPU temperature perl -n -e '/ +\+(.*)\.\d°C / && print "$1\n"' -- capture the numerical values ​​of the temperature if [ $res -ge 82 ]; -- If the temperature is greater than or equal to 82 degrees, then kill all java applications Troubles: After exiting of the game in an infinite loop continues to operate For information from the sensors, use the command line utility "sensors" -------------------------------------------------------------------------------------------------------------------------------------------------------------------- ru: СтолкнулÑÑ Ñ Ð¿Ñ€Ð¾Ð±Ð»ÐµÐ¼Ð¾Ð¹ перегрева компа, что ведёт к аварийному завершению работы операционки. Что бы избежать Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð½Ð°Ð¿Ð¸Ñал кривой Ñкрипт, который убивает java при нагреве процеÑÑора до 82 градуÑов (Linux выключаетÑÑ Ð¿Ñ€Ð¸ 85 градуÑах) ################ ~/wurm.sh ########################!/usr/bin/bash echo "ЗапуÑкаем игруху"sh -c 'DRI_PRIME=1 javaws "~/.cache/icedtea-web/cache/0/http/www.wurmonline.com/client/wurmclient.jnlp"' & echo "Врубаем термозащиту"while [ 1 ]; do sleep 3 res=$(sensors coretemp-isa-0000 | grep 'id 0' | perl -n -e '/ +\+(.*)\.\d°C / && print "$1\n"') if [ $res -ge 82 ]; then echo "Температура критичеÑкаÑ. Вырубаю java" killall java exit fidone################################################ ПоÑÑнение: while [ 1 ]; do -- беÑконечный цикл sleep 3 -- ожидание 3 Ñекунды res=$(sensors coretemp-isa-0000 | grep 'id 0' | perl -n -e '/ +\+(.*)\.\d°C / && print "$1\n"') ЗапиÑываем в res результат Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÐºÐ¾Ð½Ð²ÐµÐ¹ÐµÑ€Ð° команд. Где sensors coretemp-isa-0000 -- получение информации о температуре моего процеÑÑора grep 'id 0' -- получение общей температуры процеÑÑора perl -n -e '/ +\+(.*)\.\d°C / && print "$1\n"' -- выделение чиÑлового Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ñ‚ÐµÐ¼Ð¿ÐµÑ€Ð°Ñ‚ÑƒÑ€Ñ‹ if [ $res -ge 82 ]; -- еÑли температура больше 82 градуÑов, то убиваем вÑе процеÑÑÑ‹ java Проблемы: ЕÑли корректно выйти из игры беÑконечный цикл продолжает выполнÑÑ‚ÑŒÑÑ Ð”Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ð¸ Ñ Ð´Ð°Ñ‚Ñ‡Ð¸ÐºÐ¾Ð² иÑпользуйте утилиту командной Ñтроки "sensors"