Posted: Mon 14 Jan 2013, 22:21 Post subject:
I need a script for morning PC lockout, 7/365
I need to break my internet & computer addiction by barring use of my computer between certain times of the day. I'd like to put a script in /root/startup. There is no need of a countdown timer/clock on screen. It will need to stop net connections, disable kbrd and mouse, save the current RAM contents to the .2sf file then shutdown. I will want to turn it off rather than leave it running. thx in advance.
Since shutting down/power off shuts down the internet connection, couldn't you just make a short script that checks the time and if the time is between starting_disable time and Ending_disable time call poweroff to shut down the PC?
Settings would be saved normally as they are in a normal poweroff and I can see no reason to disable the mouse and keyboard as the script would in effect shut down the PC if the time was not an allowed time of running.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum