HD Install :: cafe use



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?

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

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.


original here.