Kodi Community Forum
OpenElec Shutdown at specific time - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
---- Thread: OpenElec Shutdown at specific time (/showthread.php?tid=219067)



OpenElec Shutdown at specific time - davidaq - 2015-02-20

I've recently made the transition from Windows to openelec and was wondering how I can schedule a shutdown for a specific time (eg 11pm each night). I previously did this with a scheduled task in windows, but not sure how to go about this in openelec. Is this possible?
Thanks!


RE: OpenElec Shutdown at specific time - naloj - 2015-02-20

ssh in and run 'crontab -e'

paste:

0 23 * * * * /usr/sbin/halt -p

hit ctrl+o to write, hit enter to accept the default filename, hit ctrl+x to exit


This forum uses Lukasz Tkacz MyBB addons.