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: how to create a n alarm clock, programming for newbies< Next Oldest | Next Newest >
soultan Offline

Group: Members
Posts: 12
Joined: Sep. 2005
Posted: Sep. 12 2005,11:44 QUOTE

I'd like an alarm clock for my dsl install.
Granted there are probably some good ones out there that will work for dsl ( I havent found them*hinthint any one else?) I would like to learn how to write a program to do it in dsl-ian, any hints? Including already existing alarms?
Back to top
Profile PM 
clacker Offline

Group: Members
Posts: 570
Joined: June 2004
Posted: Sep. 13 2005,02:59 QUOTE

This is as crude as you can get, so take it for what it's worth.  You can use the sleep command to basically pause for a period os time before executing the next command.  So if you made the following file called starmeup:

Code Sample
sleep 3600
echo "wake up!!!"

and then type chmod 777 startmeup.  Now when you type startmeup and the program is in your current path it will run the echo command in 3600 seconds (1 hour).

The more civilized approach is to use cron to run a job at a particular time.  DSL doesn't come with cron, but you can get it from debian.
Back to top
Profile PM 
1 replies since Sep. 12 2005,11:44 < Next Oldest | Next Newest >

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

reply to topic new topic new poll
Quick Reply: how to create a n alarm clock

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