Tiny Core Base > CorePlus

Set Shutdown Time

(1/4) > >>

Boss 429:
Hi,

I've been searching the forums and I'm not really seeing a way to shut down TC at a specific time. I would like to be able to shut the machines down at night without having to interact with them. The closest thing I've found was setting up a delay timer, but that won't quite work for my application.

Thank you

netnomad:
hi,

you are looking for a tool like cron.
with cron-jobs you can define timetables for commands f.e. shutdown at a specific time.

keep on hacking :-)

Misalf:
You can use the  cron  bot code to start cron at boot.
The command  crontab -e  is used to create a cron job. An editor will open where you can write in something like this:

--- Code: ---00 00 * * * /usr/bin/filetool.sh -b ; /usr/bin/sudo /sbin/poweroff

--- End code ---
This would, at midnight, perform a backup and shutdown the system.

Then add  var/spool/cron/crontabs  to your backup.

Boss 429:
Misalf, When I tried to insert the code into crontab, it wouldn't allow me to run a backup, and the next line of text started to jump across the screen every time I hit the return key to go to the next line. I'm not really sure what would be causing that, but it's consistently doing it

gerald_clark:
Do not use leading "/" in .filetool.lst.

Navigation

[0] Message Index

[#] Next page

Go to full version