Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: cafe use< Next Oldest | Next Newest >
dolf147 Offline





Group: Members
Posts: 2
Joined: Mar. 2004
Posted: Mar. 20 2004,16:57 QUOTE

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?
Back to top
Profile PM 
Blitz Offline





Group: Members
Posts: 2
Joined: Mar. 2004
Posted: Mar. 27 2004,19:26 QUOTE

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
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Mar. 29 2004,18:45 QUOTE

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.
Back to top
Profile PM 
2 replies since Mar. 20 2004,16:57 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: cafe use

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code