Results 1 to 3 of 3
How to set the time limit for my little child on Centos 5.2? (the easiest way) Time limit per day/wk/mth ? (eg.1hr 25min/day, diff on Sat & Sun) Login time ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-27-2009 #1
- Join Date
- Aug 2005
time limit of parental control
Time limit per day/wk/mth ? (eg.1hr 25min/day, diff on Sat & Sun)
Login time limit? (between 7pm -9pm period can access to login weekday, set 6pm-10pm on Sat & Sun)
Online limit? (can use internet on this computer 1hr 10min daily)
- 04-27-2009 #2
- 04-27-2009 #3
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Hints: sleep, date +"%u", logout
The sleep command will put the script to sleep for some period of seconds: 1hr 25min == 5100 seconds. The date +"%u" command returns the day-of-week number (1-7) where Monday == 1. So, this isn't a difficult script, and it should log the user (child) out after the specified amount of time. You could even set it up so that say 10 minutes before it expires it beeps the user so they know their time is just about up.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!