recon7979 Posted April 4, 2016 Report Share Posted April 4, 2016 Witam wszystkich! Dopiero zacząłem zabawę z linuxem wiec proszę o wyrozumiałość. A wiec spróbuje wytłumaczyć o co mi chodzi. W mojej sieci lokalnej posiadam serwer readyNAS i i Htpc z systemem Openelec. Wybudzanie serwera Nas przez WOL działa wyśmienicie poprzez dodatek w Openelec ale moje pytanie brzmi czy można jakoś automatycznie wylaczyc serwer wraz z wyłączeniem Openelec? Z góry dziękuje za pomoc! Link to comment Share on other sites More sharing options...
Miszcz Posted April 5, 2016 Report Share Posted April 5, 2016 Pogooglaj: Cron lub at Link to comment Share on other sites More sharing options...
recon7979 Posted April 6, 2016 Author Report Share Posted April 6, 2016 Witam! To co zrozumialem ze jest mozliwosc zrobienie tego przez crontab ale mi chodzi o automatyczne zamkniecie serwera ReadyNAS wraz z zamknieciem systemu openelec. Moze jakis skrypt? Link to comment Share on other sites More sharing options...
Fedoras Posted April 9, 2016 Report Share Posted April 9, 2016 A na którym z nich zainstalowałeś Fedorę? EDIT W Fedorze możesz to zrobić tak: rsh -l remoteuser host.example.com "shutdown -h now" Robisz skrypt o nazwie np. go_bed i wpisujesz polecenia dla wszystkich serwerów, które chcesz zamknąć. Na końcu umieszczasz polecenie zamknięcia serwera z którego odpalasz skrypt. RSH to trochę starzyzna i mało bezpieczny (hasło idzie otwartym tekstem), ale poszukaj czegoś bezpieczniejszego Wikipedia najlepszym przyjacielem człowieka https://pl.wikipedia.org/wiki/Rsh_%28remote_shell%29 Link to comment Share on other sites More sharing options...
Scorpion Posted April 13, 2016 Report Share Posted April 13, 2016 rsh -l remoteuser host.example.com "shutdown -h now" ssh host.example.com "shutdown -h now" A tak nie można ? Jak są klucze ustawione to bez hasła idzie. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now