Считаете, что Ubuntu недостаточно дружелюбна к новичкам? Помогите создать новое Руководство для новичков!
0 Пользователей и 1 Гость просматривают эту тему.
#!/bin/shcase "$1" in resume) some_scriptesac
Aug 8 13:44:26 asus anacron[5138]: Anacron 2.3 started on 2016-08-08Aug 8 13:44:26 asus anacron[5138]: Normal exit (0 jobs run)
sleep 30
#!/bin/bashrm /tmp/hotspot.pidap-hotspot restart
#!/bin/shcase "$1" in resume) sleep 30 && rm /tmp/hotspot.pid && ap-hotspot restart ;;esac
#!/bin/shcase "$1" in resume) rm /tmp/hotspot.pid && ap-hotspot restart ;;esac
#!/bin/shcase "$1" in suspend|suspend_hybrid|hibernate) curl http://192.168.20.4/30000/44sleep 1 && curl http://192.168.20.4/30000/13 ;;esac
#!/bin/shcase "$1" insuspend|suspend_hybrid|hibernate) if ping 192.168.20.4 then curl http://192.168.20.4/30000/44 && { sleep 1; curl http://192.168.20.4/30000/13 } fi;;esac
ping -c1 -W2 192.168.20.4
#!/bin/shcase "$1" insuspend|suspend_hybrid|hibernate) ping -n -q -i 0.3 -w 3 192.168.20.4 > /dev/null if [ $? -ne «0» ] then exit 0 else curl http://192.168.20.4/30000/44 && { sleep 1; curl http://192.168.20.4/30000/13 } fi;;esac
#!/bin/shcase "$1" insuspend|suspend_hybrid|hibernate) if ping -c1 -W2 192.168.20.4 then curl http://192.168.20.4/30000/44 && { sleep 1; curl http://192.168.20.4/30000/13 } fi;;esac
Код: [Выделить]ping -c1 -W2 192.168.20.4
ping -c3 192.168.20.4
Страница сгенерирована за 0.061 секунд. Запросов: 23.