cafe useForum: HD Install Topic: cafe use started by: dolf147 Posted by dolf147 on Mar. 20 2004,16:57
hello, I need someting that makes that the user of the computer only an houre can be online. can that with the com-port, just a signal. A programma on the computer makes that the internet goes open and after 30 minutes, it close the line again. (i know how the com-port works on windows but not on linux) with other words: how can i read and put the com-port. and how can i make that the program can't be stoped. can i write a program in pascal and then comile it with gcc? Posted by Blitz on Mar. 27 2004,19:26
You could hire a freelance programmer:p You could program a kind of clock, and if the time's over, you'll get a fullscreen message; time's up or something? Maikel Posted by cbagger01 on Mar. 29 2004,18:45
My advice is to kill the Internet connectivity with a shell script (kinda like an MSDOS batch file) that runs after a 30 minute delay (or 1800 seconds).For example (this probably won't work but it gets my idea explained): !/bin/bash sleep 1800 ifdown -a exit then run a script like this as the root user whenever somebody is initially logged in. Exactly 30 minutes later it should disconnect them from the Internet. To re-enable internet capability, do an "ifup -a" (as username root) and then run your ppp dial up script. Good Luck. |