Page 1 of 1

CLOSED: Auto-shutdown HDA at certain times

Posted: Sun Sep 27, 2015 3:16 am
by AndyBel
Hi

I'm wondering if anyone can help - I've tried to Google this already and can't find an answer (as yet)

I would like my HDA to shut down at a certain time every day. It's connected to a smart-plug was I can set to turn off and on at certain times, and the BIOS is configured to boot-up once power is applied so starting automatically isn't a problem!

I know there is the shutdown command sudo shutdown -h 0.30 (for a 12.30 am shutdown for example) however I have to manually type this every day. Is there a script I can add this code in so it's run at startup for example?

Thanks for any suggestions.

Andy

Re: Auto-shutdown HDA at certain times

Posted: Sun Sep 27, 2015 6:40 am
by bigfoot65
You can set up cron jobs to execute commands at a specific time.

This short introduction to cron jobs should help.

Re: Auto-shutdown HDA at certain times

Posted: Sun Sep 27, 2015 2:03 pm
by AndyBel
Thanks BigFoot - I'll look into that!

Re: Auto-shutdown HDA at certain times

Posted: Sun Sep 27, 2015 2:06 pm
by bigfoot65
No problem. Closing this one.