Hi
I’m new to this forum and MineOs and Linux and Minecraft servers, so please bear with my.
This weekend I installed MineOs on an old computer of mine so my son can get a server up and running and I have to admit easy install, easy setup, easy all the way. This is so far one of the most straight forward systems I have meet, but enough about that.
Everything is running, servers, wifi etc, but I would very much like that my PC shutsdown everyday a 22.00 hours and restart a 07.00 hours everyday, simply to save the cost of having it running and to avoid that my son is playing all day.
My problem is that I can’t get the PC to turn off, I have been playing with crontab but it does not seem to work and I was hoping that some smart guy could tell me why…
What I have done is:
Login (using putty) as MC
su to root
crontab -e
edit the file to look like this:
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use ‘*’ in these fields (for ‘any’).#
# Notice that tasks will be started based on the cron’s system
# daemon’s notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
00 22 * * * /sbin/shutdown -h now
And then I waited but nothing happens, anyone knows why:
As a side note: I can see that when the editor saves the file, the filename/path is:
/tmp/crontab.DxIUoJ/crontab and the path seems to change everytime I edit the file??
Best regards (and hoping for some help)
Kenneth