Linux
- 22 ответа
- 0 вопросов
24
Вклад в тег
set @curday := DAYNAME(CURDATE());
SELECT id, name, `time`, description FROM daily
WHERE
day = @curday
or day = 'all'
or (@curday in ('Sunday','Saturday') and day = 'weekend' )
or (@curday not in ('Sunday','Saturday') and day = 'workday' )
@echo off
:loop
ping -n 1 ya.ru || (
netsh interface set interface "Ethernet" admin=DISABLED
netsh interface set interface "Ethernet" admin=ENABLED
netsh interface ipv4 set address "Ethernet" static 10.0.0.1 255.255.255.0 10.0.0.2
exit
)
timeout 1
goto loop