Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 17:41
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
I need a script for morning PC lockout, 7/365
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
boof

Joined: 26 Sep 2012
Posts: 185

PostPosted: 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.
Back to top
View user's profile Send_private_message 
Barkin


Joined: 12 Aug 2011
Posts: 727

PostPosted: Tue 15 Jan 2013, 04:26    Post_subject:  

some sort of "Net Nanny" maybe ... http://www.murga-linux.com/puppy/viewtopic.php?t=71271&sid=8e0b7e52999eb480ab911e416bc18b34
Back to top
View user's profile Send_private_message 
ally


Joined: 19 May 2012
Posts: 851
Location: lincoln

PostPosted: Tue 15 Jan 2013, 06:25    Post_subject:  

hey boof

does your router support this

mine has a power off setting for powersaving overnight for example

may be worth checking

Smile
Back to top
View user's profile Send_private_message Visit_website 
8-bit


Joined: 03 Apr 2007
Posts: 3380
Location: Oregon

PostPosted: Wed 16 Jan 2013, 01:33    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
boof

Joined: 26 Sep 2012
Posts: 185

PostPosted: Tue 22 Jan 2013, 12:20    Post_subject:  

Dear 8-bit;

I don't know the programming syntax to do it, tho' I understand the idea.
That's why I posted the OP.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0432s ][ Queries: 11 (0.0039s) ][ GZIP on ]